/** * Deletes all items from cache. * * This should only be used for maintenance purposes (slow performance). */ public function flush() { $keys = $this->redis->keys($this->redis->prefix('*')); foreach ($keys as $key) { $this->redis->del($key); } }