Skip to content

Commit

Permalink
Merge pull request #25 from ctavan/pass-list-to-delete
Browse files Browse the repository at this point in the history
Pass list to delete
  • Loading branch information
fiorix committed Jul 18, 2012
2 parents 2e3a367 + eedda88 commit 2d7a4ab
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Expand Up @@ -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.
3 changes: 2 additions & 1 deletion txredisapi.py
Expand Up @@ -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):
Expand Down

0 comments on commit 2d7a4ab

Please sign in to comment.