=======
it satisfies that
- cache update strategy: LRU
- thread safe
- nonblocking save and get
Later it may support and manage distributed redis Now it is reactored with Redisson
it supports that
- define a maximum volume
- cache update strategy: LRU
- cache expires on write or last-read
- thread safe
But it is single-node management... Maybe zookeeper can be used for distributed version
- the throughput
- the thread-safe feature
Cache testedCache = Cache.newBuilder()
.jedisPool(jedisPool)
.maxVolume(maxValume)
.expireAfterAccess(1, TimeUnit.SECONDS)
.build();
-
put value into cahce
testedCache.set(key, value);
-
get value from cache
testedCache.get(key);