From 90cf0bfb567d571a8fe2097a916917d245695e42 Mon Sep 17 00:00:00 2001 From: Pablo Ferreiro Date: Sun, 13 Feb 2022 22:27:21 +0100 Subject: [PATCH] Fix Redis --- app/Cache/RedisCache.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Cache/RedisCache.php b/app/Cache/RedisCache.php index 4b7ee33..82063a0 100644 --- a/app/Cache/RedisCache.php +++ b/app/Cache/RedisCache.php @@ -31,7 +31,7 @@ class RedisCache { return $this->client->exists($cache_key); } - public function set(string $cache_key, array $data, $timeout = 3600) { - $this->client->set($cache_key, json_encode($data), $timeout); + public function set(string $cache_key, string $data, $timeout = 3600) { + $this->client->set($cache_key, $data, $timeout); } }