forked from mirror/redis
Mention SETEX in the documentation.
To help people looking for it specifically.
This commit is contained in:
parent
cbad034630
commit
d9f1dc2386
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue