diff options
Diffstat (limited to 'examples/redis-unstable/src/commands/lset.json')
| -rw-r--r-- | examples/redis-unstable/src/commands/lset.json | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/examples/redis-unstable/src/commands/lset.json b/examples/redis-unstable/src/commands/lset.json new file mode 100644 index 0000000..473b02c --- /dev/null +++ b/examples/redis-unstable/src/commands/lset.json | |||
| @@ -0,0 +1,55 @@ | |||
| 1 | { | ||
| 2 | "LSET": { | ||
| 3 | "summary": "Sets the value of an element in a list by its index.", | ||
| 4 | "complexity": "O(N) where N is the length of the list. Setting either the first or the last element of the list is O(1).", | ||
| 5 | "group": "list", | ||
| 6 | "since": "1.0.0", | ||
| 7 | "arity": 4, | ||
| 8 | "function": "lsetCommand", | ||
| 9 | "command_flags": [ | ||
| 10 | "WRITE", | ||
| 11 | "DENYOOM" | ||
| 12 | ], | ||
| 13 | "acl_categories": [ | ||
| 14 | "LIST" | ||
| 15 | ], | ||
| 16 | "key_specs": [ | ||
| 17 | { | ||
| 18 | "flags": [ | ||
| 19 | "RW", | ||
| 20 | "UPDATE" | ||
| 21 | ], | ||
| 22 | "begin_search": { | ||
| 23 | "index": { | ||
| 24 | "pos": 1 | ||
| 25 | } | ||
| 26 | }, | ||
| 27 | "find_keys": { | ||
| 28 | "range": { | ||
| 29 | "lastkey": 0, | ||
| 30 | "step": 1, | ||
| 31 | "limit": 0 | ||
| 32 | } | ||
| 33 | } | ||
| 34 | } | ||
| 35 | ], | ||
| 36 | "reply_schema": { | ||
| 37 | "const": "OK" | ||
| 38 | }, | ||
| 39 | "arguments": [ | ||
| 40 | { | ||
| 41 | "name": "key", | ||
| 42 | "type": "key", | ||
| 43 | "key_spec_index": 0 | ||
| 44 | }, | ||
| 45 | { | ||
| 46 | "name": "index", | ||
| 47 | "type": "integer" | ||
| 48 | }, | ||
| 49 | { | ||
| 50 | "name": "element", | ||
| 51 | "type": "string" | ||
| 52 | } | ||
| 53 | ] | ||
| 54 | } | ||
| 55 | } | ||
