diff options
Diffstat (limited to 'src/commands/decrby.json')
-rw-r--r-- | src/commands/decrby.json | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/src/commands/decrby.json b/src/commands/decrby.json new file mode 100644 index 0000000..3db9879 --- /dev/null +++ b/src/commands/decrby.json @@ -0,0 +1,54 @@ +{ + "DECRBY": { + "summary": "Decrements a number from the integer value of a key. Uses 0 as initial value if the key doesn't exist.", + "complexity": "O(1)", + "group": "string", + "since": "1.0.0", + "arity": 3, + "function": "decrbyCommand", + "command_flags": [ + "WRITE", + "DENYOOM", + "FAST" + ], + "acl_categories": [ + "STRING" + ], + "key_specs": [ + { + "flags": [ + "RW", + "ACCESS", + "UPDATE" + ], + "begin_search": { + "index": { + "pos": 1 + } + }, + "find_keys": { + "range": { + "lastkey": 0, + "step": 1, + "limit": 0 + } + } + } + ], + "reply_schema": { + "type": "integer", + "description": "The value of the key after decrementing it." + }, + "arguments": [ + { + "name": "key", + "type": "key", + "key_spec_index": 0 + }, + { + "name": "decrement", + "type": "integer" + } + ] + } +} |