summaryrefslogtreecommitdiff
path: root/src/redismodule.h
diff options
context:
space:
mode:
authorShaya Potter <shaya@redislabs.com>2022-05-08 15:05:24 +0300
committerGitHub <noreply@github.com>2022-05-08 15:05:24 +0300
commit4e761eb7e2a4317f1ca27bf04e68c87e0e81d137 (patch)
tree36242fed1e95dbf586ee7d44acbf5223f9b4ea2d /src/redismodule.h
parentff3a3577f29a07e965b3b38d07894410d28da499 (diff)
downloadredis-4e761eb7e2a4317f1ca27bf04e68c87e0e81d137.tar.gz
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
Diffstat (limited to 'src/redismodule.h')
-rw-r--r--src/redismodule.h3
1 files changed, 2 insertions, 1 deletions
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 */