示例#1
0
 /**
  * Retrieve any option via interception of the parent's statically held
  * options including the local option for a tag cache.
  *
  * @param  string $name
  * @return mixed
  */
 public function getOption($name)
 {
     if ($name == 'tag_cache') {
         return $this->getInnerCache();
     } else {
         if (in_array($name, $this->_options)) {
             return $this->_options[$name];
         }
         if ($name == 'lifetime') {
             return parent::getLifetime();
         }
         return null;
     }
 }
 /**
  * Get the life time
  *
  * if $specificLifetime is not false, the given specific life time is used
  * else, the global lifetime is used
  *
  * @param  int $specificLifetime
  * @return int Cache life time
  */
 public function getLifetime($specificLifetime)
 {
     return $this->_backend->getLifetime($specificLifetime);
 }