Exemple #1
0
 /**
  * Returns a cached value based on it's key
  *
  * @param String $key The value to retrieve
  * @return mixed Returns the cached value
  */
 public function get($key)
 {
     $first = $this->primary->get($key);
     if ($first !== NULL) {
         return $first;
     }
     return $this->secondary->get($key);
 }
Exemple #2
0
 /**
  * Returns a cached value based on it's key
  *
  * @param String $key The value to retrieve
  * @return mixed Returns the cached value
  */
 public function get($key)
 {
     return $this->inner->get($this->prepareKey($key));
 }
Exemple #3
0
 /**
  * Returns a cached value based on it's key
  *
  * @param String $key The value to retrieve
  * @return mixed Returns the cached value
  */
 public function get($key)
 {
     return $this->cache->get($this->modifyKey($key));
 }
Exemple #4
0
 /**
  * Returns a the raw value from the cache
  *
  * @return mixed Returns the cached value
  */
 public function get()
 {
     return $this->cache->get($this->key);
 }