summaryrefslogtreecommitdiffstats
path: root/src/commands/bitop.json
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/commands/bitop.json72
1 files changed, 72 insertions, 0 deletions
diff --git a/src/commands/bitop.json b/src/commands/bitop.json
new file mode 100644
index 0000000..7cca1f0
--- /dev/null
+++ b/src/commands/bitop.json
@@ -0,0 +1,72 @@
+{
+ "BITOP": {
+ "summary": "Perform bitwise operations between strings",
+ "complexity": "O(N)",
+ "group": "bitmap",
+ "since": "2.6.0",
+ "arity": -4,
+ "function": "bitopCommand",
+ "command_flags": [
+ "WRITE",
+ "DENYOOM"
+ ],
+ "acl_categories": [
+ "BITMAP"
+ ],
+ "key_specs": [
+ {
+ "flags": [
+ "OW",
+ "UPDATE"
+ ],
+ "begin_search": {
+ "index": {
+ "pos": 2
+ }
+ },
+ "find_keys": {
+ "range": {
+ "lastkey": 0,
+ "step": 1,
+ "limit": 0
+ }
+ }
+ },
+ {
+ "flags": [
+ "RO",
+ "ACCESS"
+ ],
+ "begin_search": {
+ "index": {
+ "pos": 3
+ }
+ },
+ "find_keys": {
+ "range": {
+ "lastkey": -1,
+ "step": 1,
+ "limit": 0
+ }
+ }
+ }
+ ],
+ "arguments": [
+ {
+ "name": "operation",
+ "type": "string"
+ },
+ {
+ "name": "destkey",
+ "type": "key",
+ "key_spec_index": 0
+ },
+ {
+ "name": "key",
+ "type": "key",
+ "key_spec_index": 1,
+ "multiple": true
+ }
+ ]
+ }
+}