From d3b25fc66cd48308dae2a486a566e33630b3731f Mon Sep 17 00:00:00 2001 From: yalouwang Date: Wed, 4 Dec 2019 17:18:13 +0800 Subject: [PATCH] fix:Set operation claims insufficient memory (#1203) --- commands.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands.go b/commands.go index 07efec0..cf305b4 100644 --- a/commands.go +++ b/commands.go @@ -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