| @@ 84-88 (lines=5) @@ | ||
| 81 | ) { |
|
| 82 | $key = $keyPrefix . $id . $keySuffix; |
|
| 83 | // In-memory |
|
| 84 | if ($object = $this->inMemory->get($key)) { |
|
| 85 | $this->logger->logCacheHit($arguments ?: [$id], 3, true); |
|
| 86 | ||
| 87 | return $object; |
|
| 88 | } |
|
| 89 | ||
| 90 | // Cache pool |
|
| 91 | $cacheItem = $this->cache->getItem($key); |
|
| @@ 136-140 (lines=5) @@ | ||
| 133 | array $arguments = [] |
|
| 134 | ) { |
|
| 135 | // In-memory |
|
| 136 | if ($objects = $this->inMemory->get($key)) { |
|
| 137 | $this->logger->logCacheHit($arguments, 3, true); |
|
| 138 | ||
| 139 | return $objects; |
|
| 140 | } |
|
| 141 | ||
| 142 | // Cache pool |
|
| 143 | $cacheItem = $this->cache->getItem($key); |
|