pub struct InvalidationConfig {
pub channel: String,
pub auto_broadcast_on_write: bool,
pub enable_audit_stream: bool,
pub audit_stream: String,
pub audit_stream_maxlen: Option<usize>,
}Expand description
Configuration for cache invalidation
Fields§
§channel: StringRedis Pub/Sub channel name for invalidation messages
auto_broadcast_on_write: boolWhether to automatically broadcast invalidation on writes
enable_audit_stream: boolWhether to also publish invalidation events to Redis Streams for audit
audit_stream: StringRedis Stream name for invalidation audit trail
audit_stream_maxlen: Option<usize>Maximum length of audit stream (older entries are trimmed)
Trait Implementations§
Source§impl Clone for InvalidationConfig
impl Clone for InvalidationConfig
Source§fn clone(&self) -> InvalidationConfig
fn clone(&self) -> InvalidationConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InvalidationConfig
impl Debug for InvalidationConfig
Auto Trait Implementations§
impl Freeze for InvalidationConfig
impl RefUnwindSafe for InvalidationConfig
impl Send for InvalidationConfig
impl Sync for InvalidationConfig
impl Unpin for InvalidationConfig
impl UnwindSafe for InvalidationConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more