Skip to content

Commit 626bb80

Browse files
authored
fix(cache/redis): use connectionAwareSerialize in RedisStore::putMany() (#55814)
Cache RedisStore::putMany() should not serialize values if the connection already uses serialization.
1 parent 6fa572f commit 626bb80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Cache/RedisStore.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ public function putMany(array $values, $seconds)
140140
$serializedValues = [];
141141

142142
foreach ($values as $key => $value) {
143-
$serializedValues[$this->prefix.$key] = $this->serialize($value);
143+
$serializedValues[$this->prefix.$key] = $this->connectionAwareSerialize($value, $connection);
144144
}
145145

146146
$connection->multi();

0 commit comments

Comments
 (0)