Skip to content

Commit

Permalink
Add __delitem__ implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
viljoviitanen committed Nov 8, 2018
1 parent 6d56cfd commit 972204f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions fakeredis.py
Original file line number Diff line number Diff line change
Expand Up @@ -980,6 +980,10 @@ def delete(self, *names):
continue
return deleted

@_locked
def __delitem__(self, name):
return self.delete(name)

@_locked
def sort(self, name, start=None, num=None, by=None, get=None, desc=False,
alpha=False, store=None):
Expand Down

0 comments on commit 972204f

Please sign in to comment.