forked from mirror/redis
Merge pull request #514 from fiatjaf/patch-1
Mention SETEX in the documentation.
This commit is contained in:
commit
51564b7fd1
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue