forked from mirror/redis
fix:Set operation claims insufficient memory (#1203)
This commit is contained in:
parent
dab9d3f802
commit
d3b25fc66c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue