Expand description
HTTP caching infrastructure for Sentinel
This module provides the foundation for HTTP response caching using Pingora’s cache infrastructure.
Current features:
- Cache configuration per route
- Cache statistics tracking
- Cache key generation
- TTL calculation from Cache-Control headers
- In-memory cache storage backend (for development/testing)
§Storage Backends
The default storage is an in-memory cache suitable for development and single-instance deployments. For production with large cache sizes or persistence needs, consider implementing a disk-based storage backend.
Structs§
- Cache
Config - Cache configuration for a route
- Cache
Manager - Cache manager for HTTP responses
- Http
Cache Stats - HTTP cache statistics
Functions§
- get_
cache_ eviction - Get a static reference to the cache eviction manager
- get_
cache_ lock - Get a static reference to the cache lock
- get_
cache_ storage - Get a static reference to the HTTP cache storage