Mention SETEX in the documentation.

To help people looking for it specifically.
This commit is contained in:
Giovanni T. Parra 2017-02-24 22:01:11 -03:00 committed by GitHub
parent cbad034630
commit d9f1dc2386
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.
//
// 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)