MCPcopy Create free account
hub / github.com/cosdata/cosdata / CacheConfig

Class CacheConfig

src/config_loader.rs:200–207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

198
199#[derive(Debug, Deserialize, Clone)]
200pub struct CacheConfig {
201 // Maximum number of collections to keep in memory
202 #[serde(default = "default_max_collections")]
203 pub max_collections: usize,
204 // Probability factor for eviction (0.0-1.0)
205 #[serde(default = "default_eviction_probability")]
206 pub eviction_probability: f32,
207}
208
209fn default_max_collections() -> usize {
210 10

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected