fixed 1929:cannot acess appadmin cache if you use redis as cache, thanks leonardo

This commit is contained in:
mdipierro
2014-05-26 23:49:11 -05:00
parent ece00a8f52
commit 6e54b5458b
3 changed files with 7 additions and 1 deletions

View File

@@ -1 +1 @@
Version 2.9.5-trunk+timestamp.2014.05.26.23.42.22
Version 2.9.5-trunk+timestamp.2014.05.26.23.47.54

View File

@@ -21,6 +21,9 @@ class MemcacheClient(object):
self.request = request
self.default_time_expire = default_time_expire
def initialize(self):
pass
def __call__(
self,
key,

View File

@@ -105,6 +105,9 @@ class RedisClient(object):
self.r_server = redis.Redis(host=host, port=port, db=self.db, password=self.password)
def initialize(self):
pass
def __call__(self, key, f, time_expire=300, with_lock=None):
if with_lock is None:
with_lock = self.with_lock