Skip to main content

CACHE

Static CACHE 

Source
static CACHE: RwLock<Option<HashMap<String, CacheEntry>>>
Expand description

Simple in-memory cache for static assets

Uses a HashMap to store cached responses by URL path. This is a basic implementation that could be enhanced with:

  • TTL-based expiration
  • LRU eviction when cache is full
  • Size limits