Skip to content

Commit

Permalink
Merge branch 'pr/403'
Browse files Browse the repository at this point in the history
  • Loading branch information
andymccurdy committed Nov 28, 2013
2 parents b2101d3 + d440ba7 commit 71c64c2
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions redis/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,9 @@ def decr(self, name, amount=1):
def delete(self, *names):
"Delete one or more keys specified by ``names``"
return self.execute_command('DEL', *names)
__delitem__ = delete

def __delitem__(self, name):
self.delete(name)

def dump(self, name):
"""
Expand Down Expand Up @@ -873,7 +875,9 @@ def set(self, name, value, ex=None, px=None, nx=False, xx=False):
if xx:
pieces.append('XX')
return self.execute_command('SET', *pieces)
__setitem__ = set

def __setitem__(self, name, value):
self.set(name, value)

def setbit(self, name, offset, value):
"""
Expand Down

0 comments on commit 71c64c2

Please sign in to comment.