Expand description
In-memory response cache for HttpEnricher.
Keyed on (method, url, body_hash) with a configurable TTL. Each
HttpEnricher instance owns its own cache so two recipes that hit
the same URL with different API keys (different Authorization
headers) cannot accidentally share each other’s cached responses.
Mandatory in practice for any rate-limited API (VirusTotal: 4 req/min
on the free tier) and a major win for any duplicate-detection burst.
Off by default; cache_ttl: <duration> on the enricher config flips
it on.
Structs§
- Cache
Key - Composite cache key for one cached HTTP response.
- Cache
Stats - Stats counters that survive across
HttpResponseCache::lookup/HttpResponseCache::insertcalls. Wired into Prometheus metrics in Phase 4 (rsigma_enrichment_http_cache_{hits,misses,expirations}_total). - Http
Response Cache - In-memory
(method, url, body_hash) → JSON valuecache with TTL.
Enums§
- Cache
Outcome - Outcome of a cache lookup.