Crate ngdp_cache

Crate ngdp_cache 

Source
Expand description

Generic caching functionality for NGDP components

This crate provides a flexible caching system for NGDP-related data including:

  • Generic cache for arbitrary data
  • CDN content cache (config, data, patch, indices)
  • Ribbit response cache
  • Cached clients for Ribbit, TACT, and CDN protocols

Re-exports§

pub use cdn::CdnCache;
pub use error::Error;
pub use error::Result;
pub use stats::CacheReport;
pub use stats::CacheStats;
pub use stats::CacheStatsSnapshot;

Modules§

cached_cdn_client
Cached wrapper for CDN client
cached_ribbit_client
Cached wrapper for RibbitClient
cached_tact_client
Cached wrapper for TACT HTTP client
cdn
CDN content cache implementation
error
Error types for the ngdp-cache crate
generic
Generic cache implementation for arbitrary data
hybrid_version_client
Hybrid version discovery client that prioritizes HTTP over legacy Ribbit
ribbit
Ribbit response cache implementation
stats
Cache statistics tracking and reporting

Functions§

get_cache_dir
Get the base NGDP cache directory