How to clear the entire 2nd level Entity Cache?
Issue
- Is there a way to clear (invalidate) everything in 2nd level cache? (all entities in all regions).
- Is there an API to invalidate/evict all cached entities?
- In Hibernate how to programmatically clear the entire 2nd level cache?
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 5.x
- 6.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.