src/Comely/IO/Cache/Cache.php
public function delete(string $key): bool
    {
        $this->checkConnection(__METHOD__);
        $delete = $this->engine->delete($key);
        if ($delete && $this->index) {
            $this->index->events()
                ->trigger(Indexing::EVENT_ON_DELETE)
                ->params($key)
                ->fire();
        }

        return $delete;
    }
public function delete(string $key): bool
    {
        $this->checkConnection(__METHOD__);
        $delete = $this->engine->delete($key);
        if ($delete && $this->index) {
            $this->index->events()
                ->trigger(Indexing::EVENT_ON_DELETE)
                ->params($key)
                ->fire();
        }

        return $delete;
    }
public function delete ( string $ key ) : bool { $ this -> checkConnection ( __METHOD__ ) ; $ delete = $ this -> engine -> delete ( $ key ) ; if ( $ delete && $ this -> index ) { $ this -> index -> events ( ) -> trigger ( Indexing :: EVENT_ON_DELETE ) -> params ( $ key ) -> fire ( ) ; } return $ delete ; }
Delete an stored item with provided key on cache server

@param string $key
@return bool
@throws CacheException
@throws EngineException
Delete an stored item with provided key on cache server