diff options
Diffstat (limited to 'examples/redis-unstable/src/commands/hset.json')
| -rw-r--r-- | examples/redis-unstable/src/commands/hset.json | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/examples/redis-unstable/src/commands/hset.json b/examples/redis-unstable/src/commands/hset.json new file mode 100644 index 0000000..8180972 --- /dev/null +++ b/examples/redis-unstable/src/commands/hset.json | |||
| @@ -0,0 +1,70 @@ | |||
| 1 | { | ||
| 2 | "HSET": { | ||
| 3 | "summary": "Creates or modifies the value of a field in a hash.", | ||
| 4 | "complexity": "O(1) for each field/value pair added, so O(N) to add N field/value pairs when the command is called with multiple field/value pairs.", | ||
| 5 | "group": "hash", | ||
| 6 | "since": "2.0.0", | ||
| 7 | "arity": -4, | ||
| 8 | "function": "hsetCommand", | ||
| 9 | "history": [ | ||
| 10 | [ | ||
| 11 | "4.0.0", | ||
| 12 | "Accepts multiple `field` and `value` arguments." | ||
| 13 | ] | ||
| 14 | ], | ||
| 15 | "command_flags": [ | ||
| 16 | "WRITE", | ||
| 17 | "DENYOOM", | ||
| 18 | "FAST" | ||
| 19 | ], | ||
| 20 | "acl_categories": [ | ||
| 21 | "HASH" | ||
| 22 | ], | ||
| 23 | "key_specs": [ | ||
| 24 | { | ||
| 25 | "flags": [ | ||
| 26 | "RW", | ||
| 27 | "UPDATE" | ||
| 28 | ], | ||
| 29 | "begin_search": { | ||
| 30 | "index": { | ||
| 31 | "pos": 1 | ||
| 32 | } | ||
| 33 | }, | ||
| 34 | "find_keys": { | ||
| 35 | "range": { | ||
| 36 | "lastkey": 0, | ||
| 37 | "step": 1, | ||
| 38 | "limit": 0 | ||
| 39 | } | ||
| 40 | } | ||
| 41 | } | ||
| 42 | ], | ||
| 43 | "reply_schema": { | ||
| 44 | "description": "The number of fields that were added", | ||
| 45 | "type": "integer" | ||
| 46 | }, | ||
| 47 | "arguments": [ | ||
| 48 | { | ||
| 49 | "name": "key", | ||
| 50 | "type": "key", | ||
| 51 | "key_spec_index": 0 | ||
| 52 | }, | ||
| 53 | { | ||
| 54 | "name": "data", | ||
| 55 | "type": "block", | ||
| 56 | "multiple": true, | ||
| 57 | "arguments": [ | ||
| 58 | { | ||
| 59 | "name": "field", | ||
| 60 | "type": "string" | ||
| 61 | }, | ||
| 62 | { | ||
| 63 | "name": "value", | ||
| 64 | "type": "string" | ||
| 65 | } | ||
| 66 | ] | ||
| 67 | } | ||
| 68 | ] | ||
| 69 | } | ||
| 70 | } | ||
