sig_cache
Content-addressed caching for deterministic backtesting in sigc.
Overview
sig_cache provides a high-performance caching layer that ensures reproducible backtest results:
- Content-addressed storage - Uses Blake3 hashing for cache keys
- Deterministic outputs - Same inputs always produce same outputs
- Persistent storage - Uses sled for fast embedded database
- Zero-copy serialization - Uses rkyv for efficient serialization
Usage
use Cache;
let cache = new?;
// Cache compiled plans
let key = cache.hash;
if let Some = cache.get?
let result = expensive_computation?;
cache.put?;
Part of sigc
This crate is part of the sigc quantitative finance platform.
License
MIT License - see LICENSE for details.