Permalink
Browse files

Merge pull request #25 from ctavan/pass-list-to-delete

Pass list to delete
  • Loading branch information...
2 parents 2e3a367 + eedda88 commit 2d7a4abb941ebcbf27d9b8dbe558ef465b06b695 @fiorix committed Jul 18, 2012
Showing with 6 additions and 1 deletion.
  1. +4 −0 README.md
  2. +2 −1 txredisapi.py
View
@@ -540,3 +540,7 @@ Thanks to (in no particular order):
- Jeremy Archer
- Minor bugfixes.
+
+- Christoph Tavan (@ctavan)
+
+ - Idea and test case for nested multi bulk replies, minor command enhancements.
View
@@ -385,10 +385,11 @@ def exists(self, key):
"""
return self.execute_command("EXISTS", key)
- def delete(self, *keys):
+ def delete(self, keys, *args):
"""
Delete one or more keys
"""
+ keys = list_or_args("delete", keys, args)
return self.execute_command("DEL", *keys)
def type(self, key):

0 comments on commit 2d7a4ab

Please sign in to comment.