summaryrefslogtreecommitdiff
path: root/src/config.c
diff options
context:
space:
mode:
authorLuke Palmer <luke@lukepalmer.net>2022-04-13 04:36:38 -0400
committerGitHub <noreply@github.com>2022-04-13 11:36:38 +0300
commitbb7891f080602fb92197a0f398be71eb7aba9e3c (patch)
tree8e10bb0b29c09543714c5266c7e2ac757aaab442 /src/config.c
parente875ff89ece5ec9d43273b19e3b88e4d36a48ba9 (diff)
downloadredis-bb7891f080602fb92197a0f398be71eb7aba9e3c.tar.gz
Keyspace event for new keys (#10512)
Add an optional keyspace event when new keys are added to the db. This is useful for applications where clients need to be aware of the redis keyspace. Such an application can SCAN once at startup and then listen for "new" events (plus others associated with DEL, RENAME, etc).
Diffstat (limited to 'src/config.c')
-rw-r--r--src/config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config.c b/src/config.c
index 3b5d4d349..cb3ff2e45 100644
--- a/src/config.c
+++ b/src/config.c
@@ -2691,7 +2691,7 @@ static int setConfigNotifyKeyspaceEventsOption(standardConfig *config, sds *argv
}
int flags = keyspaceEventsStringToFlags(argv[0]);
if (flags == -1) {
- *err = "Invalid event class character. Use 'Ag$lshzxeKEtmd'.";
+ *err = "Invalid event class character. Use 'Ag$lshzxeKEtmdn'.";
return 0;
}
server.notify_keyspace_events = flags;