Does the ehcache cache use virtual machine memory or other memory? Is the bottom layer of ehcache map? How does he implement caching?
光阴似箭催人老,日月如移越少年。
ehcache is divided into on-heap and off-heap.
on-heap uses jvm memory and can be managed by the JVM's GC. off-heap does not use jvm memory and is configured and managed by itself through ehcache.
ps: You can think of cache as List<Map>
ehcache is divided into on-heap and off-heap.
on-heap uses jvm memory and can be managed by the JVM's GC.
off-heap does not use jvm memory and is configured and managed by itself through ehcache.
ps: You can think of cache as List<Map>