Merge pull request #514 from fiatjaf/patch-1

Mention SETEX in the documentation.
This commit is contained in:
Vladimir Mihailenco 2017-02-25 16:44:47 +03:00 committed by GitHub
commit 51564b7fd1
1 changed files with 1 additions and 0 deletions

View File

@ -734,6 +734,7 @@ func (c *cmdable) MSetNX(pairs ...interface{}) *BoolCmd {
// Redis `SET key value [expiration]` command. // Redis `SET key value [expiration]` command.
// //
// Use expiration for `SETEX`-like behavior.
// Zero expiration means the key has no expiration time. // Zero expiration means the key has no expiration time.
func (c *cmdable) Set(key string, value interface{}, expiration time.Duration) *StatusCmd { func (c *cmdable) Set(key string, value interface{}, expiration time.Duration) *StatusCmd {
args := make([]interface{}, 3, 4) args := make([]interface{}, 3, 4)