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

        return $flush;
    }
public function flush(): bool
    {
        $this->checkConnection(__METHOD__);
        $flush = $this->engine->flush();
        if ($flush && $this->index) {
            $this->index->events()->trigger(Indexing::EVENT_ON_FLUSH)
                ->fire();
        }

        return $flush;
    }
public function flush ( ) : bool { $ this -> checkConnection ( __METHOD__ ) ; $ flush = $ this -> engine -> flush ( ) ; if ( $ flush && $ this -> index ) { $ this -> index -> events ( ) -> trigger ( Indexing :: EVENT_ON_FLUSH ) -> fire ( ) ; } return $ flush ; }
Flushes all stored data from cache server

@return bool
@throws CacheException
@throws EngineException
Flushes all stored data from cache server