Implement fact cache flushing alongside a command-line argument to invoke it.

This commit is contained in:
Josh Drake 2014-07-03 14:02:26 -05:00 committed by Michael DeHaan
parent aa419044c4
commit 917e868f65
7 changed files with 32 additions and 7 deletions

View file

@ -110,3 +110,7 @@ class CacheModule(BaseCacheModule):
def delete(self, key):
self._cache.delete(self._make_key(key))
self._keys.discard(key)
def flush(self):
for key in self.keys():
self.delete(key)