Hibernate query cache automatically refreshed on external update?
Posted
by artgon
on Stack Overflow
See other posts from Stack Overflow
or by artgon
Published on 2010-05-06T17:57:35Z
Indexed on
2010/05/06
18:28 UTC
Read the original article
Hit count: 154
I'm creating a service that has read-only access to the database. I have a query cache and a second level cache enabled (READ_ONLY mode) in Hibernate to speed up the service, as the tables being accessed change rarely.
My question is, if someone goes into the DB and changes the tables manually (i.e. outside of Hibernate), does the cache recognize automatically that it needs to be cleared? Is there a time limit on the cache?
© Stack Overflow or respective owner