/** * @param $key * @return bool|mixed */ protected function getCache($key) { if ($this->cacheEnabled) { return $this->cache->get($this->cachePrefix . $key, false); } return false; }
/** * Flush the whole cache clean */ public function clear() { $this->items = array(); $this->store->clear(); }
/** * Explicitly expire the given key * * @param $key */ public function expire($key) { unset($this->items[$key]); $this->store->delete($key); }