diff options
Diffstat (limited to 'src/commands/lrange.json')
-rw-r--r-- | src/commands/lrange.json | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/src/commands/lrange.json b/src/commands/lrange.json new file mode 100644 index 0000000..8fa9352 --- /dev/null +++ b/src/commands/lrange.json @@ -0,0 +1,51 @@ +{ + "LRANGE": { + "summary": "Get a range of elements from a list", + "complexity": "O(S+N) where S is the distance of start offset from HEAD for small lists, from nearest end (HEAD or TAIL) for large lists; and N is the number of elements in the specified range.", + "group": "list", + "since": "1.0.0", + "arity": 4, + "function": "lrangeCommand", + "command_flags": [ + "READONLY" + ], + "acl_categories": [ + "LIST" + ], + "key_specs": [ + { + "flags": [ + "RO", + "ACCESS" + ], + "begin_search": { + "index": { + "pos": 1 + } + }, + "find_keys": { + "range": { + "lastkey": 0, + "step": 1, + "limit": 0 + } + } + } + ], + "arguments": [ + { + "name": "key", + "type": "key", + "key_spec_index": 0 + }, + { + "name": "start", + "type": "integer" + }, + { + "name": "stop", + "type": "integer" + } + ] + } +} |