[hibernate-dev] API to clear/evict all caches in a session factory

Galder Zamarreño galder at jboss.org
Wed Feb 22 10:49:35 EST 2012

Hi all,

Re: http://java.dzone.com/tips/clearing-hibernate-second-leve
Re: https://community.jboss.org/message/718710#718710

Shouldn't Hibernate offer an API (independent of the cache provider) to clear all 2LC caches, including all entity, all collection and all query/timestamp caches?

Beneath it, each cache provider would implement this as it wishes to do so, but the knowledge of all caches within a session factory is in Hibernate core itself.

Galder Zamarreño
Sr. Software Engineer
Infinispan, JBoss Cache

More information about the hibernate-dev mailing list