Skip to content

Optimizing Cache Hit Performance

Hüseyin Tuğrul BÜYÜKIŞIK edited this page Dec 16, 2022 · 2 revisions

When constructor parameter elementLifeTimeMs is set to 0, it causes cache items to have infinite life-time (outdated only when eviction is needed) and 5x faster lookup in cache-hit (but not much for cache-miss as its generally much slower like reading a file or downloading content taking microseconds/milliseconds).

Integer keys are generally ea

Clone this wiki locally