public function replace($key, $value, $expire = 0) { if (!$this->exists($key)) { return false; } return $this->set($key, $value, $expire); }