|
@@ 84-89 (lines=6) @@
|
| 81 |
|
|
| 82 |
|
// Cache pool |
| 83 |
|
$cacheItem = $this->cache->getItem($key); |
| 84 |
|
if ($cacheItem->isHit()) { |
| 85 |
|
$this->logger->logCacheHit([$id], 3); |
| 86 |
|
$this->inMemory->setMulti([$object = $cacheItem->get()], $cacheIndexes); |
| 87 |
|
|
| 88 |
|
return $object; |
| 89 |
|
} |
| 90 |
|
|
| 91 |
|
// Backend |
| 92 |
|
$object = $backendLoader($id); |
|
@@ 136-141 (lines=6) @@
|
| 133 |
|
|
| 134 |
|
// Cache pool |
| 135 |
|
$cacheItem = $this->cache->getItem($key); |
| 136 |
|
if ($cacheItem->isHit()) { |
| 137 |
|
$this->logger->logCacheHit($arguments, 3); |
| 138 |
|
$this->inMemory->setMulti($objects = $cacheItem->get(), $cacheIndexes, $key); |
| 139 |
|
|
| 140 |
|
return $objects; |
| 141 |
|
} |
| 142 |
|
|
| 143 |
|
// Backend |
| 144 |
|
$objects = $backendLoader(); |