|How to configure query cache invalidation with JPA queries? [message #386054]
||Mon, 23 March 2009 11:34
| Torben Putkonen
Registered: July 2009
Query cache seems to work nice with cache-usage hint |
CheckCacheThenDatabase. However, I need to be able to invalidate cached
queries after a timeout.
EclipseLink documentation contains this example:
Our code is currently fully JPA compliant, but we would like to use some
EclipseLink extensions like the query cache. Because we are currently
getting the javax.persistence.Query objects from EntityManager's
createNamedQuery() method, is there a way to set invalidation policy for
them without completely rewriting query code?
Powered by FUDForum
. Page generated in 0.04280 seconds