|
@@ 127-132 (lines=6) @@
|
| 124 |
|
|
| 125 |
|
// Cache pool |
| 126 |
|
$cacheItem = $this->cache->getItem($key); |
| 127 |
|
if ($cacheItem->isHit()) { |
| 128 |
|
$this->logger->logCacheHit([$id], 3); |
| 129 |
|
$this->inMemory->setMulti([$object = $cacheItem->get()], $cacheIndexes); |
| 130 |
|
|
| 131 |
|
return $object; |
| 132 |
|
} |
| 133 |
|
|
| 134 |
|
// Backend |
| 135 |
|
$object = $backendLoader($id); |
|
@@ 179-184 (lines=6) @@
|
| 176 |
|
|
| 177 |
|
// Cache pool |
| 178 |
|
$cacheItem = $this->cache->getItem($key); |
| 179 |
|
if ($cacheItem->isHit()) { |
| 180 |
|
$this->logger->logCacheHit($arguments, 3); |
| 181 |
|
$this->inMemory->setMulti($objects = $cacheItem->get(), $cacheIndexes, $key); |
| 182 |
|
|
| 183 |
|
return $objects; |
| 184 |
|
} |
| 185 |
|
|
| 186 |
|
// Backend |
| 187 |
|
$objects = $backendLoader(); |