Mention redis.Nil

This commit is contained in:
Vladimir Mihailenco 2017-12-27 13:29:46 +02:00
parent 58bf6f4abe
commit 624096af5e
2 changed files with 2 additions and 1 deletions

View File

@ -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)

View File

@ -11,7 +11,7 @@ import (
"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
func init() {