diff options
Diffstat (limited to 'examples/redis-unstable/src/commands/touch.json')
| -rw-r--r-- | examples/redis-unstable/src/commands/touch.json | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/examples/redis-unstable/src/commands/touch.json b/examples/redis-unstable/src/commands/touch.json new file mode 100644 index 0000000..fd1dc61 --- /dev/null +++ b/examples/redis-unstable/src/commands/touch.json | |||
| @@ -0,0 +1,53 @@ | |||
| 1 | { | ||
| 2 | "TOUCH": { | ||
| 3 | "summary": "Returns the number of existing keys out of those specified after updating the time they were last accessed.", | ||
| 4 | "complexity": "O(N) where N is the number of keys that will be touched.", | ||
| 5 | "group": "generic", | ||
| 6 | "since": "3.2.1", | ||
| 7 | "arity": -2, | ||
| 8 | "function": "touchCommand", | ||
| 9 | "command_flags": [ | ||
| 10 | "READONLY", | ||
| 11 | "FAST" | ||
| 12 | ], | ||
| 13 | "acl_categories": [ | ||
| 14 | "KEYSPACE" | ||
| 15 | ], | ||
| 16 | "command_tips": [ | ||
| 17 | "REQUEST_POLICY:MULTI_SHARD", | ||
| 18 | "RESPONSE_POLICY:AGG_SUM" | ||
| 19 | ], | ||
| 20 | "key_specs": [ | ||
| 21 | { | ||
| 22 | "flags": [ | ||
| 23 | "RO" | ||
| 24 | ], | ||
| 25 | "begin_search": { | ||
| 26 | "index": { | ||
| 27 | "pos": 1 | ||
| 28 | } | ||
| 29 | }, | ||
| 30 | "find_keys": { | ||
| 31 | "range": { | ||
| 32 | "lastkey": -1, | ||
| 33 | "step": 1, | ||
| 34 | "limit": 0 | ||
| 35 | } | ||
| 36 | } | ||
| 37 | } | ||
| 38 | ], | ||
| 39 | "arguments": [ | ||
| 40 | { | ||
| 41 | "name": "key", | ||
| 42 | "type": "key", | ||
| 43 | "key_spec_index": 0, | ||
| 44 | "multiple": true | ||
| 45 | } | ||
| 46 | ], | ||
| 47 | "reply_schema": { | ||
| 48 | "description": "the number of touched keys", | ||
| 49 | "type": "integer", | ||
| 50 | "minimum": 0 | ||
| 51 | } | ||
| 52 | } | ||
| 53 | } | ||
