Allow timeout for cache

This commit is contained in:
Ruud
2011-08-21 13:31:47 +02:00
parent e0e723c0ff
commit cb207e09a9
+2 -2
View File
@@ -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):