diff --git a/src/RedisStorage.php b/src/RedisStorage.php index e90f689..b4cdeee 100644 --- a/src/RedisStorage.php +++ b/src/RedisStorage.php @@ -52,5 +52,12 @@ class RedisStorage implements RedisStorageInterface { return $this->redis->exists($key); } + /** + * @return Redis + */ + public function getRedis(): Redis { + return $this->redis; + } + } diff --git a/src/RedisStorageInterface.php b/src/RedisStorageInterface.php index 9e2e4b7..08db323 100644 --- a/src/RedisStorageInterface.php +++ b/src/RedisStorageInterface.php @@ -13,4 +13,6 @@ interface RedisStorageInterface { public function get(string $key): mixed; public function exists(mixed $key): bool | int | Redis; + + public function getRedis(): Redis; }