ferrite-cache
Asynchronous image caching system for the Ferrite image viewer.
Features
- Async image loading and caching using Tokio
- LRU cache eviction strategy
- Image format support via the
imagecrate - Optional performance metrics via
ferrite-metricsfeature - Comprehensive error handling
Usage
use ;
let config = CacheConfig ;
let cache = new;
// Load and cache an image
let image_data = cache.get_image.await?;
// Image will be automatically evicted when cache is full
Optional Features
ferrite-metrics- Enables performance monitoring integration with ferrite-logging
Dependencies
tokio- Async runtime and utilitiesimage- Image loading and processingtracing- Logging infrastructurethiserror- Error handling
License
MIT License