Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass list to delete #25

Merged
merged 3 commits into from Jul 18, 2012
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Expand Up @@ -540,3 +540,7 @@ Thanks to (in no particular order):
- Jeremy Archer - Jeremy Archer


- Minor bugfixes. - 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) return self.execute_command("EXISTS", key)


def delete(self, *keys): def delete(self, keys, *args):
""" """
Delete one or more keys Delete one or more keys
""" """
keys = list_or_args("delete", keys, args)
return self.execute_command("DEL", *keys) return self.execute_command("DEL", *keys)


def type(self, key): def type(self, key):
Expand Down