fix:Set operation claims insufficient memory (#1203)

This commit is contained in:
yalouwang 2019-12-04 17:18:13 +08:00
parent dab9d3f802
commit d3b25fc66c
1 changed files with 1 additions and 1 deletions

View File

@ -823,7 +823,7 @@ func (c cmdable) MSetNX(pairs ...interface{}) *BoolCmd {
// Use expiration for `SETEX`-like behavior. // 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, 5)
args[0] = "set" args[0] = "set"
args[1] = key args[1] = key
args[2] = value args[2] = value