mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-11 10:25:47 +02:00
chore: allow config set notify_keyspace_events (#3790)
We do not allow notify_keyspace_events to be set at runtime via config set command. * allow notify_keyspace_events in config set command * add tests --------- Signed-off-by: kostas <kostas@dragonflydb.io>
This commit is contained in:
parent
5d64e1471a
commit
ed11c8d3a4
4 changed files with 70 additions and 8 deletions
|
@ -511,6 +511,10 @@ class DbSlice {
|
|||
return pt->Traverse(cursor, std::forward<Cb>(cb));
|
||||
}
|
||||
|
||||
// Does not check for non supported events. Callers must parse the string and reject it
|
||||
// if it's not empty and not EX.
|
||||
void SetNotifyKeyspaceEvents(std::string_view notify_keyspace_events);
|
||||
|
||||
private:
|
||||
void PreUpdate(DbIndex db_ind, Iterator it, std::string_view key);
|
||||
void PostUpdate(DbIndex db_ind, Iterator it, std::string_view key, size_t orig_size);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue