forked from mirror/redis
commit
cfed9ab470
|
@ -677,6 +677,7 @@ func (c *cmdable) DecrBy(key string, decrement int64) *IntCmd {
|
||||||
return cmd
|
return cmd
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Redis `GET key` command. It returns redis.Nil error when key does not exist.
|
||||||
func (c *cmdable) Get(key string) *StringCmd {
|
func (c *cmdable) Get(key string) *StringCmd {
|
||||||
cmd := NewStringCmd("get", key)
|
cmd := NewStringCmd("get", key)
|
||||||
c.process(cmd)
|
c.process(cmd)
|
||||||
|
|
2
redis.go
2
redis.go
|
@ -11,7 +11,7 @@ import (
|
||||||
"github.com/go-redis/redis/internal/proto"
|
"github.com/go-redis/redis/internal/proto"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Redis nil reply, .e.g. when key does not exist.
|
// Redis nil reply returned when key does not exist.
|
||||||
const Nil = internal.Nil
|
const Nil = internal.Nil
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
|
Loading…
Reference in New Issue