Merge pull request #1204 from RealBar/master

fix:Set operation claims insufficient memory (#1203)
This commit is contained in:
Vladimir Mihailenco 2019-12-05 14:18:49 +02:00 committed by GitHub
commit 23b47cf42f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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.
// 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)
args := make([]interface{}, 3, 5)
args[0] = "set"
args[1] = key
args[2] = value