clean cache key

This commit is contained in:
CHIEFSOFT\ameye
2026-01-19 10:02:03 -05:00
parent ae09366826
commit ddff043e97
+3
View File
@@ -402,6 +402,9 @@ class BaseService:
password=BaseService.CACHE_PASSWORD, password=BaseService.CACHE_PASSWORD,
decode_responses=True) decode_responses=True)
if r.exists(cacheKey):
r.unlink(cacheKey)
# Set a key 'foo' with value 'bar' # Set a key 'foo' with value 'bar'
json_string = json.dumps(cacheData, indent=4) json_string = json.dumps(cacheData, indent=4)
r.set(cacheKey, json_string, ex=120) r.set(cacheKey, json_string, ex=120)