diff options
Diffstat (limited to 'examples/redis-unstable/src/commands/xdelex.json')
| -rw-r--r-- | examples/redis-unstable/src/commands/xdelex.json | 104 |
1 files changed, 104 insertions, 0 deletions
diff --git a/examples/redis-unstable/src/commands/xdelex.json b/examples/redis-unstable/src/commands/xdelex.json new file mode 100644 index 0000000..cdb886e --- /dev/null +++ b/examples/redis-unstable/src/commands/xdelex.json @@ -0,0 +1,104 @@ +{ + "XDELEX": { + "summary": "Deletes one or multiple entries from the stream.", + "complexity": "O(1) for each single item to delete in the stream, regardless of the stream size.", + "group": "stream", + "since": "8.2.0", + "arity": -5, + "function": "xdelexCommand", + "command_flags": [ + "WRITE", + "FAST" + ], + "acl_categories": [ + "STREAM" + ], + "key_specs": [ + { + "flags": [ + "RW", + "DELETE" + ], + "begin_search": { + "index": { + "pos": 1 + } + }, + "find_keys": { + "range": { + "lastkey": 0, + "step": 1, + "limit": 0 + } + } + } + ], + "arguments": [ + { + "name": "key", + "type": "key", + "key_spec_index": 0 + }, + { + "name": "condition", + "type": "oneof", + "optional": true, + "arguments": [ + { + "name": "keepref", + "type": "pure-token", + "token": "KEEPREF" + }, + { + "name": "delref", + "type": "pure-token", + "token": "DELREF" + }, + { + "name": "acked", + "type": "pure-token", + "token": "ACKED" + } + ] + }, + { + "name": "ids", + "token": "IDS", + "type": "block", + "arguments": [ + { + "name": "numids", + "type": "integer" + }, + { + "name": "id", + "type": "string", + "multiple": true + } + ] + } + ], + "reply_schema": { + "description": "Array of results. Returns an array with -1 for each requested ID if the key does not exist.", + "type": "array", + "minItems": 0, + "maxItems": 4294967295, + "items": { + "oneOf": [ + { + "description": "The id does not exist in the provided stream key.", + "const": -1 + }, + { + "description": "Entry was deleted from the stream.", + "const": 1 + }, + { + "description": "Entry was not deleted, but there are still dangling references.", + "const": 2 + } + ] + } + } + } +} |
