资 源 简 介
simplelrucache
Description
simplelrucache is library which provides simple, memory-only, threadsafe and fast implementations of LRU cache. Library itself is very lightweight, and it"s only dependency is concurrentlinkedhasmap and slf4j-api
Features
LRU policy
TTL support
Threadsafe
Lightweight (12.7kB without dependencies, 87.1kB with dependencies)
Possibility to store values as SoftReference so garbage collection will firstly reclaim memory from cache before OutOfMemoryError
More info
ImplementationsComparison
BasicUsage
UsingAutoCallbacks
Dependencies
MavenRepository
Future
more implementations