summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSiddharth Ravikumar <sravik@bgsu.edu>2015-01-27 21:52:19 -0500
committerSiddharth Ravikumar <sravik@bgsu.edu>2015-01-27 21:52:19 -0500
commit8de1ec5982c71e06ebf19706696411534e694307 (patch)
treecb16a88416338762ea4c05177cd899d18090aa84
parentf5dca4c9e328c6d567977507d30f72b3159ff0be (diff)
combox/silo.py: new method `keys()' in ComboxSilo class.
-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)