diff options
author | Luke Palmer <luke@lukepalmer.net> | 2022-04-13 04:36:38 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-13 11:36:38 +0300 |
commit | bb7891f080602fb92197a0f398be71eb7aba9e3c (patch) | |
tree | 8e10bb0b29c09543714c5266c7e2ac757aaab442 /src/config.c | |
parent | e875ff89ece5ec9d43273b19e3b88e4d36a48ba9 (diff) | |
download | redis-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.c | 2 |
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; |