diff --git a/libraries/entropy/db/__init__.py b/libraries/entropy/db/__init__.py index e19cf4026..72d38b8f6 100644 --- a/libraries/entropy/db/__init__.py +++ b/libraries/entropy/db/__init__.py @@ -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".