Exemple #1
0
 /**
  * 移除指定键值的过期时间
  * @param string $key   键名
  * @return boolean      是否成功
  */
 public function persist($key)
 {
     try {
         return $this->handler->persist($key);
     } catch (RedisException $ex) {
         self::exception($ex);
         //连接状态置为false
         $this->isConnected = false;
     }
     return false;
 }