I went through javax.cache.Cache to understand its usage and behavior. He stated that
JCache is a map-like data structure that provides temporary storage of application data.
JCache and HashMap store items in Heap local memory and do not have persistence behavior by default. By implementing custom CacheLoader and CacheWriter , we can achieve perseverance. Also, when to use it?
java hashmap caching jcache
Kamal Chandraprakash
source share