[entropy.db] EntropyRepositoryCacher add keys()

This commit is contained in:
Fabio Erculiani
2011-02-14 17:13:19 +01:00
parent 399c63a6ad
commit 667e5e5ece
+6
View File
@@ -79,6 +79,12 @@ class EntropyRepositoryCacher(Singleton):
except KeyError:
pass
def keys(self):
"""
Return a list of available cache keys
"""
return list(self.__live_cache.keys())
def discard(self, key):
"""
Discard all the cache items with hash table key starting with "key".