From 88fdcd90f021176ca0cf6e7803891ceb4940ee75 Mon Sep 17 00:00:00 2001 From: User Date: Mon, 24 Mar 2025 02:54:43 +0300 Subject: [PATCH] 20250324#1 --- src/RedisStorage.php | 7 +++++++ src/RedisStorageInterface.php | 2 ++ 2 files changed, 9 insertions(+) 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; }