Skip to content

Commit 3344c15

Browse files
author
Meir Shpilraien (Spielrein)
authored
Added trimmed key space notification (#345)
1 parent 736597e commit 3344c15

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/include/redismodule.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,8 @@ This flag should not be used directly by the module.
227227
#define REDISMODULE_NOTIFY_LOADED (1<<12) /* module only key space notification, indicate a key loaded from rdb */
228228
#define REDISMODULE_NOTIFY_MODULE (1<<13) /* d, module key space notification */
229229
#define REDISMODULE_NOTIFY_NEW (1<<14) /* n, new key notification */
230+
/* RL Extension: */
231+
#define REDISMODULE_NOTIFY_TRIMMED (1<<30) /* trimmed by reshard trimming */
230232

231233
/* Next notification flag, must be updated when adding new flags above!
232234
This flag should not be used directly by the module.

src/raw.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ bitflags! {
125125
const LOADED = REDISMODULE_NOTIFY_LOADED;
126126
const MISSED = REDISMODULE_NOTIFY_KEY_MISS;
127127
const ALL = REDISMODULE_NOTIFY_ALL;
128+
const TRIMMED = REDISMODULE_NOTIFY_TRIMMED;
128129
}
129130
}
130131

0 commit comments

Comments
 (0)