[entropy.db] EntropyRepositoryCacher add keys()
This commit is contained in:
@@ -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".
|
||||
|
||||
Reference in New Issue
Block a user