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