| 198 | |
| 199 | #[derive(Debug, Deserialize, Clone)] |
| 200 | pub 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 | |
| 209 | fn default_max_collections() -> usize { |
| 210 | 10 |
nothing calls this directly
no outgoing calls
no test coverage detected