summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--combox/silo.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/combox/silo.py b/combox/silo.py
index cbb2065..b1e59f6 100644
--- a/combox/silo.py
+++ b/combox/silo.py
@@ -53,13 +53,19 @@ class ComboxSilo(object):
return self.db.set(filep, fhash)
+ def keys(self):
+ """Returns a list of all keys in db."""
+ # this is why Redis or some other key-value DB should be used
+ # instead of PickleDB
+ return self.db.db.keys()
+
+
def remove(self, filep):
"""Removes filep from db.
filep: path to the file in combox directory.
"""
-
return self.db.rem(filep)