We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc19412 commit 0d947fcCopy full SHA for 0d947fc
src/Illuminate/Cache/MemoizedStore.php
@@ -68,12 +68,9 @@ public function many(array $keys)
68
69
if (count($missing) > 0) {
70
$retrieved = tap($this->repository->many($missing), function ($values) {
71
- $this->cache = [
72
- ...$this->cache,
73
- ...collect($values)->mapWithKeys(fn ($value, $key) => [
74
- $this->prefix($key) => $value,
75
- ]),
76
- ];
+ collect($values)->each(function ($value, $key) {
+ $this->cache[$this->prefix($key)] = $value;
+ });
77
});
78
}
79
0 commit comments