Пример #1
0
 /**
  * 移除指定键值的过期时间
  * @param string $key   键名
  * @return boolean      是否成功
  */
 public function persist($key)
 {
     if ($this->driver->checkDriver()) {
         return $this->driver->persist($key);
     }
     if ($this->driver->isFallback() && $this->type !== self::$config['fallback']) {
         return $this->driver->backup()->persist($key);
     }
     return false;
 }