This commit is contained in:
2025-04-25 00:07:08 +08:00
parent 5d1ffc7a8b
commit b7dd1c5088
6 changed files with 111 additions and 152 deletions
+2 -1
View File
@@ -1,9 +1,10 @@
import json
from api.core.Gzip import gzip_zip, gzip_unzip
from config.main import config
def get_redis_info(redis, key, fun,without_gzip=False):
info = None
if redis:
if redis and not config.DEBUG_MODE:
try:
if without_gzip:
info = json.loads(redis.get(key))