From 4e761eb7e2a4317f1ca27bf04e68c87e0e81d137 Mon Sep 17 00:00:00 2001 From: Shaya Potter Date: Sun, 8 May 2022 15:05:24 +0300 Subject: update redismodule notify defines to be in sync with server (#10688) this seems to have been an oversight. syncing the flags so that NOTIFY_NEW is available to modules. missing in #10512 --- src/redismodule.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/redismodule.h') diff --git a/src/redismodule.h b/src/redismodule.h index cd389dd00..547559a12 100644 --- a/src/redismodule.h +++ b/src/redismodule.h @@ -185,11 +185,12 @@ This flag should not be used directly by the module. #define REDISMODULE_NOTIFY_KEY_MISS (1<<11) /* m (Note: This one is excluded from REDISMODULE_NOTIFY_ALL on purpose) */ #define REDISMODULE_NOTIFY_LOADED (1<<12) /* module only key space notification, indicate a key loaded from rdb */ #define REDISMODULE_NOTIFY_MODULE (1<<13) /* d, module key space notification */ +#define REDISMODULE_NOTIFY_NEW (1<<14) /* n, new key notification */ /* Next notification flag, must be updated when adding new flags above! This flag should not be used directly by the module. * Use RedisModule_GetKeyspaceNotificationFlagsAll instead. */ -#define _REDISMODULE_NOTIFY_NEXT (1<<14) +#define _REDISMODULE_NOTIFY_NEXT (1<<15) #define REDISMODULE_NOTIFY_ALL (REDISMODULE_NOTIFY_GENERIC | REDISMODULE_NOTIFY_STRING | REDISMODULE_NOTIFY_LIST | REDISMODULE_NOTIFY_SET | REDISMODULE_NOTIFY_HASH | REDISMODULE_NOTIFY_ZSET | REDISMODULE_NOTIFY_EXPIRED | REDISMODULE_NOTIFY_EVICTED | REDISMODULE_NOTIFY_STREAM | REDISMODULE_NOTIFY_MODULE) /* A */ -- cgit v1.2.1