|
@@ 91-96 (lines=6) @@
|
| 88 |
|
|
| 89 |
|
// Cache pool |
| 90 |
|
$cacheItem = $this->cache->getItem($key); |
| 91 |
|
if ($cacheItem->isHit()) { |
| 92 |
|
$this->logger->logCacheHit([$id], 3); |
| 93 |
|
$this->inMemory->setMulti([$object = $cacheItem->get()], $cacheIndexes); |
| 94 |
|
|
| 95 |
|
return $object; |
| 96 |
|
} |
| 97 |
|
|
| 98 |
|
// Backend |
| 99 |
|
$object = $backendLoader($id); |
|
@@ 143-148 (lines=6) @@
|
| 140 |
|
|
| 141 |
|
// Cache pool |
| 142 |
|
$cacheItem = $this->cache->getItem($key); |
| 143 |
|
if ($cacheItem->isHit()) { |
| 144 |
|
$this->logger->logCacheHit($arguments, 3); |
| 145 |
|
$this->inMemory->setMulti($objects = $cacheItem->get(), $cacheIndexes, $key); |
| 146 |
|
|
| 147 |
|
return $objects; |
| 148 |
|
} |
| 149 |
|
|
| 150 |
|
// Backend |
| 151 |
|
$objects = $backendLoader(); |