Fix Redis

This commit is contained in:
Pablo Ferreiro 2022-02-13 22:27:21 +01:00
parent a3ebb08d26
commit 90cf0bfb56
No known key found for this signature in database
GPG key ID: 41FBCE65B779FA24

View file

@ -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);
}
}