Home  >  Q&A  >  body text

java - Does ehcache cache use virtual machine memory?

Does the ehcache cache use virtual machine memory or other memory? Is the bottom layer of ehcache map? How does he implement caching?

大家讲道理大家讲道理2675 days ago1050

reply all(1)I'll reply

  • 仅有的幸福

    仅有的幸福2017-06-23 09:15:46

    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>

    reply
    0
  • Cancelreply