mirror of
https://github.com/redis/go-redis.git
synced 2025-04-17 20:17:02 +03:00
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
|
||||
}
|
||||
|
||||
func (cmd *StatusCmd) Bytes() ([]byte, error) {
|
||||
return util.StringToBytes(cmd.val), cmd.err
|
||||
}
|
||||
|
||||
func (cmd *StatusCmd) String() string {
|
||||
return cmdString(cmd, cmd.val)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user