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 958ef6c commit 8c5e5fcCopy full SHA for 8c5e5fc
src/Caching/RedisStorage.php
@@ -29,7 +29,7 @@ public function getClient(): Client
29
*/
30
public function write(string $key, $data, array $dependencies): void
31
{
32
- $this->client->set($key, json_encode($data));
+ $this->client->set($key, $data);
33
34
if (isset($dependencies[Cache::EXPIRATION])) {
35
$expiration = (int) $dependencies[Cache::EXPIRATION];
@@ -51,7 +51,7 @@ public function read(string $key)
51
$val = $this->client->get($key);
52
53
try {
54
- return json_decode($val);
+ return $val;
55
} catch (Throwable $e) {
56
return null;
57
}
0 commit comments