def clearCache(self): """This method is disabled because it clear unique storage shared by other client. Use expiration time instead. """ BaseCache.clearCache(self) LOG('DistributedRamCache', WARNING, 'not allowed to clear memcache storage')
def __init__(self, uid, params={}): self._servers = params.get('server', '') self._expiration_time = params.get('expiration_time', 0) self._server_max_key_length = params.get('server_max_key_length', 250) self._server_max_value_length = params.get('server_max_value_length', 1024*1024) self._debug_level = params.get('debug_level', 0) self._key_prefix = params.get('key_prefix', '') BaseCache.__init__(self, uid)
def __init__(self, params): BaseCache.__init__(self)
def __init__(self, uid, params={}): self._cache_dict = {} BaseCache.__init__(self, uid)
def clearCache(self): BaseCache.clearCache(self) self.getCacheStorage().clear()