/** * @see parent::listKeys() */ function listKeys($prefix) { $cache_list = $this->conn->findKeys("*"); $len = strlen($prefix); $keys = array(); foreach ($cache_list as $_key) { if (strpos($_key, $prefix) === 0) { $keys[] = substr($_key, $len); } } return $keys; }
/** * @see parent::destroy() */ function destroy($session_id) { $key = $this->getKey($session_id); self::$client->remove($key); return true; }
/** * @see parent::release() */ public function release() { if ($this->canRelease()) { $this->client->remove($this->getLockKey()); } }