Allow timeout for cache
This commit is contained in:
@@ -29,9 +29,9 @@ class Provider(Plugin):
|
||||
log.debug('Getting cache %s' % cache_key)
|
||||
return cache
|
||||
|
||||
def setCache(self, cache_key, value):
|
||||
def setCache(self, cache_key, value, timeout = 300):
|
||||
log.debug('Setting cache %s' % cache_key)
|
||||
Env.get('cache').set(cache_key, value)
|
||||
Env.get('cache').set(cache_key, value, timeout)
|
||||
|
||||
def isAvailable(self, test_url):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user