|
@@ -60,7 +60,7 @@ discard block |
|
|
block discarded – undo |
|
60
|
60
|
public function getItem(string $key): ExtendedCacheItemInterface |
|
61
|
61
|
{ |
|
62
|
62
|
return $this->getStandardizedItem( |
|
63
|
|
- $this->makeOperation(static function (ExtendedCacheItemPoolInterface $pool) use ($key) { |
|
|
63
|
+ $this->makeOperation(static function(ExtendedCacheItemPoolInterface $pool) use ($key) { |
|
64
|
64
|
return $pool->getItem($key); |
|
65
|
65
|
}) ?? (new Item($this, $key, $this->getEventManager()))->expiresAfter((int) abs($this->getConfig()->getDefaultTtl())), |
|
66
|
66
|
$this |
|
@@ -142,7 +142,7 @@ discard block |
|
|
block discarded – undo |
|
142
|
142
|
public function save(CacheItemInterface $item): bool |
|
143
|
143
|
{ |
|
144
|
144
|
return $this->makeOperation( |
|
145
|
|
- function (ExtendedCacheItemPoolInterface $pool) use ($item) { |
|
|
145
|
+ function(ExtendedCacheItemPoolInterface $pool) use ($item) { |
|
146
|
146
|
/** @var ExtendedCacheItemInterface $item */ |
|
147
|
147
|
$item->setHit(true); |
|
148
|
148
|
return $pool->save($this->getStandardizedItem($item, $pool)); |
Please login to merge, or discard this patch.