add a new SET option KEEPTTL that doesn't remove expire time

This commit is contained in:
zhaozhao.zz
2019-12-18 14:49:38 +08:00
parent b7c78b7651
commit 24044f3356
8 changed files with 38 additions and 18 deletions

View File

@ -570,7 +570,7 @@ void sortCommand(client *c) {
}
}
if (outputlen) {
setKey(c->db,storekey,sobj);
setKey(c->db,storekey,sobj,0);
notifyKeyspaceEvent(NOTIFY_LIST,"sortstore",storekey,
c->db->id);
server.dirty += outputlen;