public function __construct($k, $Id, $persist) { $this->k = $k; $this->Id = $Id; $this->persist = $persist; $this->rd = LibRd\L($this->Id, FALSE, $persist); }
/** * 重新连接Redis */ protected function reconnRedis() { $this->rd = NULL; $this->rd = LibRd\L($this->Id, TRUE, $this->persist); if ($this->rd) { return TRUE; } return FALSE; }