Skip to main content

Module api_response_cache

Module api_response_cache 

Source
Expand description

API Response Caching Layer with ETag Support

Reduces serialization overhead and bandwidth by caching API responses with:

  • TTL-based expiration
  • ETag support for conditional requests (304 Not Modified)
  • Hit ratio tracking and statistics
  • Optional pre-warming on startup

Structsยง

ApiResponseCache
Thread-safe API response cache
CacheStats
Cache statistics for observability