Commit e830560a authored by blackbrrr's avatar blackbrrr

added flush method to redis cache interface

parent a768c616
......@@ -85,6 +85,9 @@ class CacheClass(BaseCache):
key = self._prepare_key(key)
self._cache.delete(key)
def flush(self, all_dbs=False):
self._cache.flush(all_dbs)
def get_many(self, keys):
"Retrieve many keys."
return self._cache.mget(map(self._prepare_key, keys))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment