简体   繁体   中英

Hibernate transactions in second level cache

Generally, hibernate transactions are based on first level caching sessions . How to create a session in Hibernate that accesses a second level cache?

Is it possible?

Only first level cache is managed with hibernate session, but The second level cache is maintained at the SessionFactory level.

https://www.journaldev.com/2980/hibernate-ehcache-hibernate-second-level-cache

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM