Skip to content

Commit

Permalink
Merge pull request redis#1204 from RealBar/master
Browse files Browse the repository at this point in the history
fix:Set operation claims insufficient memory (redis#1203)
  • Loading branch information
vmihailenco authored Dec 5, 2019
2 parents dab9d3f + d3b25fc commit 23b47cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 23b47cf

Please sign in to comment.