public function fetch($key)
 {
     $key = $this->getKey($key);
     return $this->storage->get($key, false);
 }
Example #2
0
 /**
  * Retrieve an item from the cache by key.
  *
  * @param $key
  * @param bool $strict
  * @param null $default
  *
  * @return mixed|null
  *
  * @throws CacheMissException
  */
 public function get($key, $strict = true, $default = null)
 {
     return $this->storage->get($key, $strict, $default);
 }