This commit is contained in:
CHIEFSOFT\ameye
2026-01-19 10:14:39 -05:00
parent ddff043e97
commit f2443b99cb
3 changed files with 10 additions and 2 deletions
+2 -1
View File
@@ -30,6 +30,7 @@ class BaseService:
CACHE_SERVER = Config.CACHE_SERVER
CACHE_PORT = Config.CACHE_PORT
CACHE_PASSWORD = Config.CACHE_PASSWORD
CACHE_DEFAULT_EXPIRE = Config.CACHE_DEFAULT_EXPIRE
@staticmethod
def addStripeCustomer(customerData):
@@ -407,7 +408,7 @@ class BaseService:
# Set a key 'foo' with value 'bar'
json_string = json.dumps(cacheData, indent=4)
r.set(cacheKey, json_string, ex=120)
r.set(cacheKey, json_string, ex=BaseService.CACHE_DEFAULT_EXPIRE)
# Verify by getting the value
value = r.get(cacheKey)