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