key = $key; $this->expire = $expire; $this->pool = $pool; } /** * {@inheritdoc} */ public function load() { $item = $this->pool->getItem($this->key); $contents = $item->get(); if ($item->isMiss() === false) { $this->setFromStorage($contents); } } /** * {@inheritdoc} */ public function save() { $contents = $this->getForStorage(); $item = $this->pool->getItem($this->key); $item->set($contents, $this->expire); } }