cache = $pool; $this->ttl = $ttl; } /** * {@inheritdoc} */ public function open($savePath, $sessionName) { return true; } /** * {@inheritdoc} */ public function close() { return true; } /** * {@inheritdoc} */ public function read($sessionId) { return $this->cache->get($sessionId, ''); } /** * {@inheritdoc} */ public function write($sessionId, $data) { $this->cache->set($sessionId, $data, $this->ttl); return true; } /** * {@inheritdoc} */ public function destroy($sessionId) { $this->cache->delete($sessionId); return true; } /** * {@inheritdoc} */ public function gc($lifetime) { return true; } }