redis report

This commit is contained in:
Kenneth Kehl
2025-01-22 08:44:34 -08:00
parent 56af19637e
commit a4f6dd7100
5 changed files with 92 additions and 8 deletions

View File

@@ -149,6 +149,22 @@ class RedisClient:
except Exception as e:
self.__handle_exception(e, raise_exception, "incr", key)
def info(self, key):
if self.active:
return self.redis_store.info(key)
def keys(self, pattern):
if self.active:
return self.redis_store.keys(pattern)
def type(self, key):
if self.active:
return self.redis_store.type(key)
def ttl(self, key):
if self.active:
return self.redis_store.ttl(key)
def get(self, key, raise_exception=False):
key = prepare_value(key)
if self.active: