Skip to content

Commit

Permalink
Special case incr/decr
Browse files Browse the repository at this point in the history
redis-py puts them all in the incr/decr commands.
  • Loading branch information
James Saryerwinnie committed Mar 14, 2012
1 parent 54c70e1 commit 6cfc334
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions scripts/supported
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@ for name, method in inspect.getmembers(fakeredis.FakeRedis):
# This is specific to the python bindings because
# 'del' is a keyword so delete is used instead.
name = 'del'
if name == 'incr':
# redis-py supports incrby by the incr method
# so implementing incr means implementing incrby.
implemented_commands.add('incrby')
if name == 'decr':
# Same thing for decr vs. decrby
implemented_commands.add('decrby')
implemented_commands.add(name)

unimplemented_commands = set()
Expand Down

0 comments on commit 6cfc334

Please sign in to comment.