Skip to content

Commit

Permalink
Merge pull request #491 from qi-hua/main
Browse files Browse the repository at this point in the history
feat: add redis-cell  command CL.THROTTLE
  • Loading branch information
rueian authored Mar 8, 2024
2 parents 0893abb + 91a8bb6 commit d83782c
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 d83782c

Please sign in to comment.