pub struct CacheConfig {
pub enabled: bool,
pub query_cache: QueryCacheConfig,
pub embedding_cache: EmbeddingCacheConfig,
pub semantic_cache: SemanticCacheConfig,
pub result_cache: ResultCacheConfig,
pub persistence: PersistenceConfig,
pub performance: PerformanceConfig,
}Expand description
Global cache configuration
Fields§
§enabled: boolEnable/disable caching globally
query_cache: QueryCacheConfigQuery cache configuration
embedding_cache: EmbeddingCacheConfigEmbedding cache configuration
semantic_cache: SemanticCacheConfigSemantic cache configuration
result_cache: ResultCacheConfigResult cache configuration
persistence: PersistenceConfigPersistence configuration
performance: PerformanceConfigPerformance tuning
Trait Implementations§
Source§impl Clone for CacheConfig
impl Clone for CacheConfig
Source§fn clone(&self) -> CacheConfig
fn clone(&self) -> CacheConfig
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 CacheConfig
impl Debug for CacheConfig
Auto Trait Implementations§
impl Freeze for CacheConfig
impl RefUnwindSafe for CacheConfig
impl Send for CacheConfig
impl Sync for CacheConfig
impl Unpin for CacheConfig
impl UnwindSafe for CacheConfig
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