Beispiel #1
0
 /**
  * Retrieves a value from cache with a specified key.
  * This is the implementation of the method declared in the parent class.
  * @param string $key A unique key identifying the cached value
  * @return string The value stored in cache, false if the value is not in the cache or expired.
  */
 protected function getValue($key)
 {
     $cacheItem = $this->_yiiron->cacheGetItem($this->yiironCacheName, $key);
     if ($cacheItem != null && $cacheItem->value != null) {
         return $cacheItem->value;
     } else {
         return false;
     }
 }