mirror of https://github.com/go-redis/redis.git
commit
cfed9ab470
|
@ -677,6 +677,7 @@ func (c *cmdable) DecrBy(key string, decrement int64) *IntCmd {
|
|||
return cmd
|
||||
}
|
||||
|
||||
// Redis `GET key` command. It returns redis.Nil error when key does not exist.
|
||||
func (c *cmdable) Get(key string) *StringCmd {
|
||||
cmd := NewStringCmd("get", key)
|
||||
c.process(cmd)
|
||||
|
|
Loading…
Reference in New Issue