/** * {@inheritdoc} */ public function close() { $records =& $this->buffer; $key =& $this->key; $this->redis->multiExec(function ($multi) use($key, $records) { foreach ($records as $record) { $multi->rpush($key, $record); } }); }
/** * {@inheritDoc} */ public function destroy($sessionId) { $this->redis->del($this->getKey($sessionId)); return true; }