mirror of
https://github.com/redis/go-redis.git
synced 2025-04-17 20:17:02 +03:00
fix: add Cmder annotation (#2816)
* fix: add Cmder annotation Signed-off-by: rfyiamcool <rfyiamcool@163.com> * fix: add Cmder annotation Signed-off-by: rfyiamcool <rfyiamcool@163.com> --------- Signed-off-by: rfyiamcool <rfyiamcool@163.com> Co-authored-by: ofekshenawa <104765379+ofekshenawa@users.noreply.github.com>
This commit is contained in:
parent
e535124055
commit
8c695488a2
12
command.go
12
command.go
@ -18,10 +18,22 @@ import (
|
||||
)
|
||||
|
||||
type Cmder interface {
|
||||
// command name.
|
||||
// e.g. "set k v ex 10" -> "set", "cluster info" -> "cluster".
|
||||
Name() string
|
||||
|
||||
// full command name.
|
||||
// e.g. "set k v ex 10" -> "set", "cluster info" -> "cluster info".
|
||||
FullName() string
|
||||
|
||||
// all args of the command.
|
||||
// e.g. "set k v ex 10" -> "[set k v ex 10]".
|
||||
Args() []interface{}
|
||||
|
||||
// format request and response string.
|
||||
// e.g. "set k v ex 10" -> "set k v ex 10: OK", "get k" -> "get k: v".
|
||||
String() string
|
||||
|
||||
stringArg(int) string
|
||||
firstKeyPos() int8
|
||||
SetFirstKeyPos(int8)
|
||||
|
Loading…
x
Reference in New Issue
Block a user