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 e509cdf commit 6e4cf6fCopy full SHA for 6e4cf6f
src/Illuminate/Cache/DynamoDbStore.php
@@ -6,6 +6,7 @@
6
use Aws\DynamoDb\Exception\DynamoDbException;
7
use Illuminate\Contracts\Cache\LockProvider;
8
use Illuminate\Contracts\Cache\Store;
9
+use Illuminate\Support\Arr;
10
use Illuminate\Support\Carbon;
11
use Illuminate\Support\Collection;
12
use Illuminate\Support\InteractsWithTime;
@@ -113,7 +114,7 @@ public function many(array $keys)
113
114
$now = Carbon::now();
115
116
return array_merge(
- (new Collection($keys))->mapWithKeys(fn ($key) => [$key => null])->all(),
117
+ Arr::mapWithKeys($keys, fn ($key) => [$key => null]),
118
(new Collection($response['Responses'][$this->table]))->mapWithKeys(function ($response) use ($now) {
119
if ($this->isExpired($response, $now)) {
120
$value = null;
0 commit comments