pub struct GroupValueCacheConfig {
pub enabled: bool,
pub max_entries: usize,
pub ttl_ms: u64,
pub auto_update_on_indication: bool,
pub auto_update_on_write: bool,
}Expand description
GroupValueCache configuration.
Fields§
§enabled: boolWhether the cache is enabled.
max_entries: usizeMaximum number of entries in the cache. When exceeded, LRU eviction occurs.
ttl_ms: u64Time-to-live for cache entries in milliseconds. 0 = no expiration (entries only evicted by LRU).
auto_update_on_indication: boolWhether to automatically update cache on L_Data.ind indications.
auto_update_on_write: boolWhether to automatically update cache on GroupValueWrite.
Implementations§
Trait Implementations§
Source§impl Clone for GroupValueCacheConfig
impl Clone for GroupValueCacheConfig
Source§fn clone(&self) -> GroupValueCacheConfig
fn clone(&self) -> GroupValueCacheConfig
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 GroupValueCacheConfig
impl Debug for GroupValueCacheConfig
Source§impl Default for GroupValueCacheConfig
impl Default for GroupValueCacheConfig
Source§impl<'de> Deserialize<'de> for GroupValueCacheConfig
impl<'de> Deserialize<'de> for GroupValueCacheConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for GroupValueCacheConfig
impl RefUnwindSafe for GroupValueCacheConfig
impl Send for GroupValueCacheConfig
impl Sync for GroupValueCacheConfig
impl Unpin for GroupValueCacheConfig
impl UnsafeUnpin for GroupValueCacheConfig
impl UnwindSafe for GroupValueCacheConfig
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