def cachedRecently(name, length=int(config.cachetime), type=None):
"""
return true or false based on whether the modified time of the cached
file is within 'length' minutes.
"""
def cachedRecently(name, length=int(config.cachetime), type=None):
"""
return true or false based on whether the modified time of the cached
file is within 'length' minutes.
"""
if hasattr(config, 'cachecalls') and not config.cachecalls:
# don't use cached calls if cachecalls is false
return False
if hasattr(config, 'cachecalls') and not config.cachecalls:
# don't use cached calls if cachecalls is false
return False
return SPickle().load(name, type)
def dbExists(name, type=None):
return SPickle().load(name, type)
def dbExists(name, type=None):
return SPickle().exists(name, type)
def dbDump(name, obj=None, type=None):
return SPickle().exists(name, type)
def dbDump(name, obj=None, type=None):
# depth of the dump is 2 now, since we're redirecting to '.dump'
return SPickle().dump(name, obj, type, 2)
# depth of the dump is 2 now, since we're redirecting to '.dump'
return SPickle().dump(name, obj, type, 2)