mirror of https://github.com/go-redis/redis.git
Add Uint64 helper
This commit is contained in:
parent
4b6ad6a953
commit
fd834aed2b
|
@ -385,6 +385,10 @@ func (cmd *IntCmd) Result() (int64, error) {
|
||||||
return cmd.val, cmd.err
|
return cmd.val, cmd.err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (cmd *IntCmd) Uint64() (uint64, error) {
|
||||||
|
return uint64(cmd.val), cmd.err
|
||||||
|
}
|
||||||
|
|
||||||
func (cmd *IntCmd) String() string {
|
func (cmd *IntCmd) String() string {
|
||||||
return cmdString(cmd, cmd.val)
|
return cmdString(cmd, cmd.val)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue