mirror of https://github.com/go-redis/redis.git
Merge pull request #1204 from RealBar/master
fix:Set operation claims insufficient memory (#1203)
This commit is contained in:
commit
23b47cf42f
|
@ -823,7 +823,7 @@ func (c cmdable) MSetNX(pairs ...interface{}) *BoolCmd {
|
||||||
// Use expiration for `SETEX`-like behavior.
|
// Use expiration for `SETEX`-like behavior.
|
||||||
// Zero expiration means the key has no expiration time.
|
// Zero expiration means the key has no expiration time.
|
||||||
func (c cmdable) Set(key string, value interface{}, expiration time.Duration) *StatusCmd {
|
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[0] = "set"
|
||||||
args[1] = key
|
args[1] = key
|
||||||
args[2] = value
|
args[2] = value
|
||||||
|
|
Loading…
Reference in New Issue