cache_stack

Function cache_stack 

Source
pub fn cache_stack(
    path: PathBuf,
) -> Result<MetricsBlockStore<TtlBlockStore<BloomBlockStore<CachedBlockStore<SledBlockStore>>>>>
Expand description

Create a production stack with automatic expiration for cache use cases

Optimized for cache workloads with:

  • 1-hour default TTL
  • Automatic cleanup every 5 minutes
  • Large cache (500MB)
  • Bloom filter for fast negative lookups

Best for: Temporary data caching with automatic expiration