Build a bounded, thread-safe Caffeine cache that stores KEY-VALUE pairs.
Build a bounded, thread-safe Caffeine cache that stores KEY-VALUE pairs.
The type of the key used to access the cache
The type of the value stored in the cache
Name of the cache
Maximum number of entries in the cache
Caffeine cache
Report metrics for a Caffeine cache.
Report metrics for a Caffeine cache. The "cache" tag is added to all metrics.
Metrics.Context for recording metrics
Caffeine cache to get metrics from
Cache name for tagging
Utility to create a cache with LRU semantics.
The original purpose of having an LRU cache in Chronon is to cache KVStore calls and decoded IRs in the Fetcher. This helps decrease to feature serving latency.