Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
88fdcd90f0 | ||
|
|
42623e9238 |
@@ -8,7 +8,8 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"require": {
|
"require": {
|
||||||
"php": "^8.1"
|
"php": "^8.1",
|
||||||
|
"ext-redis": "*"
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"psr-4": {
|
"psr-4": {
|
||||||
|
|||||||
@@ -52,5 +52,12 @@ class RedisStorage implements RedisStorageInterface {
|
|||||||
return $this->redis->exists($key);
|
return $this->redis->exists($key);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return Redis
|
||||||
|
*/
|
||||||
|
public function getRedis(): Redis {
|
||||||
|
return $this->redis;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,4 +13,6 @@ interface RedisStorageInterface {
|
|||||||
public function get(string $key): mixed;
|
public function get(string $key): mixed;
|
||||||
|
|
||||||
public function exists(mixed $key): bool | int | Redis;
|
public function exists(mixed $key): bool | int | Redis;
|
||||||
|
|
||||||
|
public function getRedis(): Redis;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user