Commit 3ec90046 authored by Jannis Leidel's avatar Jannis Leidel Committed by Sean Bleier

Only delete many keys if keys are given.

parent 4e30bac8
...@@ -102,7 +102,8 @@ class CacheClass(BaseCache): ...@@ -102,7 +102,8 @@ class CacheClass(BaseCache):
""" """
Remove multiple keys at once. Remove multiple keys at once.
""" """
self._cache.delete(*map(self.prepare_key, keys)) if keys:
self._cache.delete(*map(self.prepare_key, keys))
def clear(self): def clear(self):
""" """
......
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