Permalink
Browse files

Also allow passing a list of keys to delete().

  • Loading branch information...
ctavan committed Jul 17, 2012
1 parent 2e3a367 commit a1fdb42fefb4e5a73daa53848a31c5ab94e69dc7
Showing with 2 additions and 1 deletion.
  1. +2 −1 txredisapi.py
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("mget", keys, args)
return self.execute_command("DEL", *keys)
def type(self, key):

0 comments on commit a1fdb42

Please sign in to comment.