mirror of
https://github.com/fluencelabs/redis
synced 2025-06-24 22:41:32 +00:00
add a new SET option KEEPTTL that doesn't remove expire time
This commit is contained in:
@ -754,7 +754,7 @@ void bitopCommand(client *c) {
|
||||
/* Store the computed value into the target key */
|
||||
if (maxlen) {
|
||||
o = createObject(OBJ_STRING,res);
|
||||
setKey(c->db,targetkey,o);
|
||||
setKey(c->db,targetkey,o,0);
|
||||
notifyKeyspaceEvent(NOTIFY_STRING,"set",targetkey,c->db->id);
|
||||
decrRefCount(o);
|
||||
} else if (dbDelete(c->db,targetkey)) {
|
||||
|
Reference in New Issue
Block a user