Skip to content

Commit

Permalink
add redis-cell command CL.THROTTLE
Browse files Browse the repository at this point in the history
  • Loading branch information
qi-hua committed Mar 7, 2024
1 parent 0893abb commit 91a8bb6
Show file tree
Hide file tree
Showing 3 changed files with 112 additions and 0 deletions.
29 changes: 29 additions & 0 deletions hack/cmds/commands_cell.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"CL.THROTTLE": {
"summary": "Creates or Get a Throttle",
"arguments": [
{
"name": "key",
"type": "key"
},
{
"name": "max_burst",
"type": "integer"
},
{
"name": "count_per_period",
"type": "integer"
},
{
"name": "period",
"type": "integer"
},
{
"name": "quantity",
"type": "integer",
"optional": true
}
],
"group": "cl"
}
}
63 changes: 63 additions & 0 deletions internal/cmds/gen_cl.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions internal/cmds/gen_cl_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 91a8bb6

Please sign in to comment.