diff options
Diffstat (limited to 'examples/redis-unstable/src/commands/strlen.json')
| -rw-r--r-- | examples/redis-unstable/src/commands/strlen.json | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/examples/redis-unstable/src/commands/strlen.json b/examples/redis-unstable/src/commands/strlen.json new file mode 100644 index 0000000..395a02d --- /dev/null +++ b/examples/redis-unstable/src/commands/strlen.json | |||
| @@ -0,0 +1,48 @@ | |||
| 1 | { | ||
| 2 | "STRLEN": { | ||
| 3 | "summary": "Returns the length of a string value.", | ||
| 4 | "complexity": "O(1)", | ||
| 5 | "group": "string", | ||
| 6 | "since": "2.2.0", | ||
| 7 | "arity": 2, | ||
| 8 | "function": "strlenCommand", | ||
| 9 | "command_flags": [ | ||
| 10 | "READONLY", | ||
| 11 | "FAST" | ||
| 12 | ], | ||
| 13 | "acl_categories": [ | ||
| 14 | "STRING" | ||
| 15 | ], | ||
| 16 | "key_specs": [ | ||
| 17 | { | ||
| 18 | "flags": [ | ||
| 19 | "RO" | ||
| 20 | ], | ||
| 21 | "begin_search": { | ||
| 22 | "index": { | ||
| 23 | "pos": 1 | ||
| 24 | } | ||
| 25 | }, | ||
| 26 | "find_keys": { | ||
| 27 | "range": { | ||
| 28 | "lastkey": 0, | ||
| 29 | "step": 1, | ||
| 30 | "limit": 0 | ||
| 31 | } | ||
| 32 | } | ||
| 33 | } | ||
| 34 | ], | ||
| 35 | "reply_schema": { | ||
| 36 | "description": "The length of the string value stored at key, or 0 when key does not exist.", | ||
| 37 | "type": "integer", | ||
| 38 | "minimum": 0 | ||
| 39 | }, | ||
| 40 | "arguments": [ | ||
| 41 | { | ||
| 42 | "name": "key", | ||
| 43 | "type": "key", | ||
| 44 | "key_spec_index": 0 | ||
| 45 | } | ||
| 46 | ] | ||
| 47 | } | ||
| 48 | } | ||
