Joined: Thu Jul 27, 2006 8:54 pm Posts: 2
|
We are using Hibernate 3 with a second level cache and we have a requirement to be able to programmatically clear (i.e. evict) everything from the second level cache. Is there a way to achieve this through hibernate?
I know I can use SessionFactory.evict (and similar methods) but I have to call it for each class, entity or collection: we have alarge number of classes being cached and this approach will inevitably lead to errors when classes are added or removed (as well being very tedious).
Thanks
|
|