summaryrefslogtreecommitdiff
path: root/src/bitops.c
diff options
context:
space:
mode:
authorzhaozhao.zz <zhaozhao.zz@alibaba-inc.com>2019-12-18 14:49:38 +0800
committerzhaozhao.zz <zhaozhao.zz@alibaba-inc.com>2019-12-18 15:20:36 +0800
commit24044f33560e9c34e73d8ffc493ed7c0b6b95dbc (patch)
treef3d6aca592a2c9231ffd369e9ac5d08c464f34ff /src/bitops.c
parentb7c78b7651c5458ccf5d95ef5857ec427b927a27 (diff)
downloadredis-24044f33560e9c34e73d8ffc493ed7c0b6b95dbc.tar.gz
add a new SET option KEEPTTL that doesn't remove expire time
Diffstat (limited to 'src/bitops.c')
-rw-r--r--src/bitops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bitops.c b/src/bitops.c
index ee1ce0460..dcd1f27a5 100644
--- a/src/bitops.c
+++ b/src/bitops.c
@@ -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)) {