/** * {@inheritDoc} */ public function save(CacheItemInterface $item) { $expiresAt = $item->getExpiresAt(); $this->cache->save($item->getKey(), $item->getValue(), null === $expiresAt ? 0 : $expiresAt->getTimestamp() - time()); return $this; }
/** * {@inheritDoc} */ public function save(CacheItemInterface $item) { $expiresAt = $item->getExpiresAt(); $this->cache->save($item->getKey(), $item->getValue(), null === $expiresAt ? 0 : $expiresAt->getTimestamp() - time()); return $this; }