/** * Retrieve an item from the cache by key. * * @param mixed $key * * @return mixed */ public function get($key) { if (is_array($key)) { return $this->getMulti($key); } return parent::get($key); }
/** * Fetches an entry from the cache. * * @param string $id The id of the cache entry to fetch. * * @return string|bool The cached data or FALSE, if no cache entry exists for the given id. */ protected function doFetch($id) { return $this->store->get($id) ?: false; }