Skip to content

Commit d4865cb

Browse files
authored
Support new DELIFEQ command #67 (#70)
* Support new DELIFEQ command #67 - Added DELIFEQ to commands.json - Regenerated command builders (gen_stream_test.go, gen_string.go, gen_string_test.go) Signed-off-by: krish8955 <krishnakhandelwal8955@gmail.com> * Update DELIFEQ command definition - Removed unnecessary fields (command_flags, acl_categories, key_specs, reply_schema) from DELIFEQ - Kept only essential metadata for clarity and maintainability - Kept the indentation maintained Signed-off-by: Krishna Khandelwal <krishnakhandelwal8955@gmail.com> --------- Signed-off-by: krish8955 <krishnakhandelwal8955@gmail.com> Signed-off-by: Krishna Khandelwal <krishnakhandelwal8955@gmail.com>
1 parent 0386cc0 commit d4865cb

File tree

4 files changed

+57
-0
lines changed

4 files changed

+57
-0
lines changed

hack/cmds/commands.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1062,6 +1062,7 @@
10621062
"since": "7.0.0",
10631063
"group": "cluster"
10641064
},
1065+
10651066
"CLUSTER FAILOVER": {
10661067
"summary": "Forces a replica to perform a manual failover of its master.",
10671068
"complexity": "O(1)",
@@ -1577,6 +1578,24 @@
15771578
"since": "1.0.0",
15781579
"group": "generic"
15791580
},
1581+
"DELIFEQ": {
1582+
"summary": "Delete key if value matches string.",
1583+
"complexity": "O(1)",
1584+
"group": "string",
1585+
"since": "9.0.0",
1586+
"arity": 3,
1587+
"function": "delifeqCommand",
1588+
"arguments": [
1589+
{
1590+
"name": "key",
1591+
"type": "key"
1592+
},
1593+
{
1594+
"name": "value",
1595+
"type": "string"
1596+
}
1597+
]
1598+
},
15801599
"DISCARD": {
15811600
"summary": "Discard all commands issued after MULTI",
15821601
"since": "2.0.0",

internal/cmds/gen_stream_test.go

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/cmds/gen_string.go

Lines changed: 32 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/cmds/gen_string_test.go

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)