protected function prepareRoute($route) { $key = $this->keyPrefix . ':' . $route . ':' . $this->stateKey; $item = $this->pool->getItem($key); if (!$item->isHit()) { $item->set(parent::prepareRoute($route)); $item->expiresAfter($this->ttl); $this->pool->save($item); } return $item->get(); }