Using new wrapper
This commit is contained in:
parent
19e2c32c77
commit
a3ebb08d26
22 changed files with 141 additions and 154 deletions
|
|
@ -27,6 +27,10 @@ class RedisCache {
|
|||
return null;
|
||||
}
|
||||
|
||||
public function exists(string $cache_key): bool {
|
||||
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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue