Skip to content

Commit 23b47cf

Browse files
authored
Merge pull request #1204 from RealBar/master
fix:Set operation claims insufficient memory (#1203)
2 parents dab9d3f + d3b25fc commit 23b47cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

commands.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -823,7 +823,7 @@ func (c cmdable) MSetNX(pairs ...interface{}) *BoolCmd {
823823
// Use expiration for `SETEX`-like behavior.
824824
// Zero expiration means the key has no expiration time.
825825
func (c cmdable) Set(key string, value interface{}, expiration time.Duration) *StatusCmd {
826-
args := make([]interface{}, 3, 4)
826+
args := make([]interface{}, 3, 5)
827827
args[0] = "set"
828828
args[1] = key
829829
args[2] = value

0 commit comments

Comments
 (0)