| #32 | $v = xn_json_encode($v); |
| #33 | if($life>0){ |
| #34 | $r = $this->link->set($this->pre.$k, $v,$life); |
| #35 | }else{ |
| #36 | $r = $this->link->set($this->pre.$k, $v); |
| #37 | } |
| #38 | return $r; |
| #39 | } |
| #40 | public function get($k) { |
| #41 | if(!$this->link && !$this->connect()) return FALSE; |