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 49f6f7a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fakeredis.py
Original file line number Diff line number Diff line change
Expand Up @@ -980,6 +980,9 @@ def delete(self, *names):
continue
return deleted

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 49f6f7a

Please sign in to comment.