mirror of
https://github.com/redis/go-redis.git
synced 2025-07-28 06:42:00 +03:00
commands.go: add section parameter to Info function.
This commit is contained in:
@ -1454,9 +1454,12 @@ func (c *commandable) FlushDb() *StatusCmd {
|
||||
return cmd
|
||||
}
|
||||
|
||||
func (c *commandable) Info() *StringCmd {
|
||||
cmd := NewStringCmd("INFO")
|
||||
cmd._clusterKeyPos = 0
|
||||
func (c *commandable) Info(section ...string) *StringCmd {
|
||||
args := []interface{}{"INFO"}
|
||||
if len(section) > 0 {
|
||||
args = append(args, section[0])
|
||||
}
|
||||
cmd := NewStringCmd(args...)
|
||||
c.Process(cmd)
|
||||
return cmd
|
||||
}
|
||||
|
Reference in New Issue
Block a user