6378
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user