Commit e830560a authored by blackbrrr's avatar blackbrrr

added flush method to redis cache interface

parent a768c616
......@@ -84,6 +84,9 @@ class CacheClass(BaseCache):
"Remove a key from the cache."
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."
......
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