diff --git a/fakeredis.py b/fakeredis.py index 3dfe256..125a38c 100644 --- a/fakeredis.py +++ b/fakeredis.py @@ -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):