Doctrine\Common\Cache\RiakCache::doFlush PHP Method

doFlush() protected method

protected doFlush ( )
    protected function doFlush()
    {
        try {
            $keyList = $this->bucket->getKeyList();
            foreach ($keyList as $key) {
                $this->bucket->delete($key);
            }
            return true;
        } catch (Exception\RiakException $e) {
            // Do nothing
        }
        return false;
    }