pub struct NotificationFlags {
pub keyspace: bool,
pub keyevent: bool,
pub generic: bool,
pub string: bool,
pub list: bool,
pub set: bool,
pub hash: bool,
pub zset: bool,
pub stream: bool,
pub expired: bool,
pub evicted: bool,
pub new_key: bool,
}Expand description
Parsed view of NotificationSection::notify_keyspace_events. The
runtime caches this struct per-shard (hot-reload via the existing
LiveRuntimeConfig tick path) so the per-write-command check
reduces to four bool reads on the hot path.
Fields§
§keyspace: boolK — publish on __keyspace@<db>__:<key> channel.
keyevent: boolE — publish on __keyevent@<db>__:<event> channel.
generic: boolg — DEL / EXPIRE / PERSIST / RENAME / TYPE / FLUSH etc.
string: bool$ — SET / GETSET / INCR* / APPEND / MSET / etc.
list: booll — LPUSH / RPUSH / LPOP / RPOP / LREM / LSET / LTRIM / …
set: bools — SADD / SREM / SPOP / SMOVE / …
hash: boolh — HSET / HDEL / HINCRBY / HSETNX / …
zset: boolz — ZADD / ZINCRBY / ZREM / ZREMRANGEBY* / …
stream: boolt — XADD / XDEL / XTRIM / XGROUP / XACK / XCLAIM / XREADGROUP …
expired: boolx — expired events, fired when a TTL’d key is removed
(lazily on access or by the active reaper).
evicted: boole — evicted events, fired when maxmemory pressure removes
a key.
new_key: booln — new events, fired when a key is added to the keyspace.
Not part of the A alias (Redis convention).
Implementations§
Trait Implementations§
Source§impl Clone for NotificationFlags
impl Clone for NotificationFlags
Source§fn clone(&self) -> NotificationFlags
fn clone(&self) -> NotificationFlags
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more