Prev Next

Hibernate / Hibernate Caching

What are the different CacheMode in second level cache of hibernate?

There are 4 different CacheMode.

  • CacheMode.NORMAL : This mode allows to read and write data in second level cache.
  • CacheMode.GET : In this mode, data will be read but will not be written in second level cache.
  • CacheMode.PUT : Data will be written but not will be read from second level cache.
  • CacheMode.REFRESH : Data will be written and will not be read from second level cache. The difference between Put and Refresh is that CacheMode.REFRESH will bypass

More Related questions...

Show more question and Answers...


Comments & Discussions