mirror of https://github.com/go-redis/redis.git
Add `(*StatusCmd).Bytes()` method (#3030)
Signed-off-by: Andrew Haines <andrew@haines.org.nz> Co-authored-by: Monkey <golang@88.com>
This commit is contained in:
parent
fc4c8bd2f7
commit
2d7382e8cc
|
@ -573,6 +573,10 @@ func (cmd *StatusCmd) Result() (string, error) {
|
||||||
return cmd.val, cmd.err
|
return cmd.val, cmd.err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (cmd *StatusCmd) Bytes() ([]byte, error) {
|
||||||
|
return util.StringToBytes(cmd.val), cmd.err
|
||||||
|
}
|
||||||
|
|
||||||
func (cmd *StatusCmd) String() string {
|
func (cmd *StatusCmd) String() string {
|
||||||
return cmdString(cmd, cmd.val)
|
return cmdString(cmd, cmd.val)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue