lazy_lazy_cache->lazy_cache, thanks Anthony

This commit is contained in:
mdipierro
2012-07-25 16:53:21 -05:00
parent 9e45d82049
commit ba80c083ab
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.00.0 (2012-07-25 16:21:28) dev
Version 2.00.0 (2012-07-25 16:53:17) dev
+2 -2
View File
@@ -35,7 +35,7 @@ except ImportError:
logger = logging.getLogger("web2py.cache")
__all__ = ['Cache', 'lazy_lazy_cache']
__all__ = ['Cache', 'lazy_cache']
DEFAULT_TIME_EXPIRE = 300
@@ -478,7 +478,7 @@ class Cache(object):
return CacheAction(func,key,time_expire,self,cache_model)
return tmp
def lazy_lazy_cache(key=None,time_expire=None,cache_model='ram'):
def lazy_cache(key=None,time_expire=None,cache_model='ram'):
def decorator(f,key=key,time_expire=time_expire,cache_model=cache_model):
key = key or repr(f)
def g(*c,**d):