From d9f1dc2386f0324418a3aa10af2bef4133b58a25 Mon Sep 17 00:00:00 2001 From: "Giovanni T. Parra" Date: Fri, 24 Feb 2017 22:01:11 -0300 Subject: [PATCH] Mention SETEX in the documentation. To help people looking for it specifically. --- commands.go | 1 + 1 file changed, 1 insertion(+) diff --git a/commands.go b/commands.go index e2dc0ca..b96da7b 100644 --- a/commands.go +++ b/commands.go @@ -734,6 +734,7 @@ func (c *cmdable) MSetNX(pairs ...interface{}) *BoolCmd { // Redis `SET key value [expiration]` command. // +// Use expiration for `SETEX`-like behavior. // Zero expiration means the key has no expiration time. func (c *cmdable) Set(key string, value interface{}, expiration time.Duration) *StatusCmd { args := make([]interface{}, 3, 4)