pub struct DistribCacheConfig {Show 38 fields
pub enabled: bool,
pub l1_size_mb: usize,
pub l1_max_entry_size: usize,
pub l1_eviction_policy: EvictionPolicy,
pub l2_enabled: bool,
pub l2_size_gb: u64,
pub l2_path: PathBuf,
pub l2_compression: CompressionType,
pub l3_enabled: bool,
pub l3_replication_factor: u32,
pub l3_peers: Vec<SocketAddr>,
pub oltp_cache_ttl: Duration,
pub olap_cache_ttl: Duration,
pub vector_cache_ttl: Duration,
pub ai_agent_cache_ttl: Duration,
pub rag_cache_ttl: Duration,
pub default_cache_ttl: Duration,
pub prefetch_enabled: bool,
pub prefetch_lookahead: u32,
pub prefetch_confidence_threshold: f32,
pub max_prefetch_queue: usize,
pub invalidation_mode: InvalidationMode,
pub wal_endpoint: Option<String>,
pub wal_lag_tolerance: Duration,
pub scheduling_policy: SchedulingPolicy,
pub oltp_priority: f64,
pub olap_priority: f64,
pub vector_priority: f64,
pub ai_agent_priority: f64,
pub max_concurrent_oltp: u32,
pub max_concurrent_olap: u32,
pub max_concurrent_vector: u32,
pub max_concurrent_ai: u32,
pub heatmap_enabled: bool,
pub heatmap_bucket_size: Duration,
pub heatmap_retention: Duration,
pub max_conversation_turns: usize,
pub semantic_similarity_threshold: f32,
}Expand description
Main configuration for Helios-DistribCache
Fields§
§enabled: boolWhether caching is enabled
l1_size_mb: usizeL1 cache size in megabytes
l1_max_entry_size: usizeMaximum entry size in L1
l1_eviction_policy: EvictionPolicyL1 eviction policy
l2_enabled: boolWhether L2 is enabled
l2_size_gb: u64L2 cache size in gigabytes
l2_path: PathBufL2 storage path
l2_compression: CompressionTypeL2 compression type
l3_enabled: boolWhether L3 is enabled
l3_replication_factor: u32Replication factor for distributed cache
l3_peers: Vec<SocketAddr>Peer addresses for distributed cache mesh
oltp_cache_ttl: DurationOLTP query cache TTL
olap_cache_ttl: DurationOLAP query cache TTL
vector_cache_ttl: DurationVector search cache TTL
ai_agent_cache_ttl: DurationAI agent cache TTL
rag_cache_ttl: DurationRAG pipeline cache TTL
default_cache_ttl: DurationDefault cache TTL
prefetch_enabled: boolWhether prefetching is enabled
prefetch_lookahead: u32Number of queries to look ahead for prefetching
prefetch_confidence_threshold: f32Confidence threshold for prefetch predictions
max_prefetch_queue: usizeMaximum prefetch queue size
invalidation_mode: InvalidationModeInvalidation mode
wal_endpoint: Option<String>WAL endpoint for streaming invalidation
wal_lag_tolerance: DurationWAL lag tolerance
scheduling_policy: SchedulingPolicyWorkload scheduling policy
oltp_priority: f64OLTP priority weight
olap_priority: f64OLAP priority weight
vector_priority: f64Vector priority weight
ai_agent_priority: f64AI agent priority weight
max_concurrent_oltp: u32Maximum concurrent queries per workload type
max_concurrent_olap: u32§max_concurrent_vector: u32§max_concurrent_ai: u32§heatmap_enabled: boolWhether heatmap analytics is enabled
heatmap_bucket_size: DurationHeatmap time bucket size
heatmap_retention: DurationHeatmap data retention
max_conversation_turns: usizeMaximum conversation turns to cache
semantic_similarity_threshold: f32Semantic similarity threshold
Implementations§
Source§impl DistribCacheConfig
impl DistribCacheConfig
Sourcepub fn builder() -> DistribCacheConfigBuilder
pub fn builder() -> DistribCacheConfigBuilder
Create a new configuration builder
Trait Implementations§
Source§impl Clone for DistribCacheConfig
impl Clone for DistribCacheConfig
Source§fn clone(&self) -> DistribCacheConfig
fn clone(&self) -> DistribCacheConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DistribCacheConfig
impl Debug for DistribCacheConfig
Auto Trait Implementations§
impl Freeze for DistribCacheConfig
impl RefUnwindSafe for DistribCacheConfig
impl Send for DistribCacheConfig
impl Sync for DistribCacheConfig
impl Unpin for DistribCacheConfig
impl UnsafeUnpin for DistribCacheConfig
impl UnwindSafe for DistribCacheConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more