| Crates.io | llm-config-cache |
| lib.rs | llm-config-cache |
| version | 0.5.0 |
| created_at | 2025-11-21 22:00:06.570944+00 |
| updated_at | 2025-11-21 22:00:06.570944+00 |
| description | Multi-tier caching system with L1/L2 cache support, TTL management, and cache invalidation strategies |
| homepage | https://github.com/globalbusinessadvisors/llm-config-manager |
| repository | https://github.com/globalbusinessadvisors/llm-config-manager |
| max_upload_size | |
| id | 1944335 |
| size | 78,736 |
Multi-tier caching system with L1/L2 cache support, TTL management, and cache invalidation strategies for LLM Config Manager.
[dependencies]
llm-config-cache = "0.5.0"
use llm_config_cache::CacheManager;
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let cache = CacheManager::new();
// Cache a value
cache.put("key", b"value", Some(Duration::from_secs(300))).await?;
// Retrieve from cache
if let Some(value) = cache.get("key").await? {
println!("Cached: {:?}", value);
}
Ok(())
}
Licensed under the Apache License, Version 2.0.