MapCache is a local cache for java and jvm applications. It support different cache types, you can seem them on the examples, from the very basic to the most complete.
var cache = MapCache.config()
.cache();
var filler = () -> Map.of("key1", "value1", "key2", "value2", "key3", "value3");
var cacheWithFiller = MapCache.config()
.filler(filler)
.cache();
var cache = MapCache.config()
.expireIn(Duration.ofMinutes(15))
.cache();
var filler = () -> Map.of("key1", "value1", "key2", "value2", "key3", "value3");
var cache = MapCache.config()
.filler(filler).expireIn(Duration.ofMinutes(15))
.cache();
var filler = () -> Map.of("key1", "value1", "key2", "value2", "key3", "value3");
var cache = MapCache.config()
.filler(filler).every(Duration.ofMinutes(5))
.cache();
var filler = () -> Map.of("key1", "value1", "key2", "value2", "key3", "value3");
var cache = MapCache.config()
.filler(filler).every(Duration.ofMinutes(5))
.expireIn(Duration.ofMinutes(15))
.cache();
Links used to build this project