Fix Redis
This commit is contained in:
parent
a3ebb08d26
commit
90cf0bfb56
|
@ -31,7 +31,7 @@ class RedisCache {
|
||||||
return $this->client->exists($cache_key);
|
return $this->client->exists($cache_key);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function set(string $cache_key, array $data, $timeout = 3600) {
|
public function set(string $cache_key, string $data, $timeout = 3600) {
|
||||||
$this->client->set($cache_key, json_encode($data), $timeout);
|
$this->client->set($cache_key, $data, $timeout);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue