示例#1
0
 /**
  * Overridden to prevent calling getLifeTime at shutdown
  *
  * @return bool
  */
 public function close()
 {
     if (!$this->_useRedis) {
         return parent::close();
     }
     if ($this->_logLevel >= Zend_Log::DEBUG) {
         $this->_log("Closing connection");
     }
     if ($this->_redis) {
         $this->_redis->close();
     }
     return TRUE;
 }
 /**
  * Overridden to prevent calling getLifeTime at shutdown
  *
  * @return bool
  */
 public function close()
 {
     if (!$this->_useRedis) {
         return parent::close();
     }
     if ($this->_logLevel >= 7) {
         Mage::log(sprintf("%s: Closing connection", $this->_getPid()), Zend_Log::DEBUG, self::LOG_FILE);
     }
     if ($this->_redis) {
         $this->_redis->close();
     }
     return TRUE;
 }