public function update($key, $value, $expire = 0) { $arr = $this->get($key); if (!empty($arr)) { $arr = array_merge($arr, $value); return $this->set($key, $arr, $expire); } return 0; }