예제 #1
0
 /**
  * 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);
 }
예제 #2
0
파일: Memcached.php 프로젝트: Devitek/orm
 /**
  * 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;
 }