2 Commits
1.0 ... 1.1

Author SHA1 Message Date
User
88fdcd90f0 20250324#1 2025-03-24 02:54:43 +03:00
User
42623e9238 20250112#2 2025-01-12 23:48:56 +03:00
3 changed files with 11 additions and 1 deletions

View File

@@ -8,7 +8,8 @@
} }
], ],
"require": { "require": {
"php": "^8.1" "php": "^8.1",
"ext-redis": "*"
}, },
"autoload": { "autoload": {
"psr-4": { "psr-4": {

View File

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

View File

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