In hibernate reference about the CacheMode
http://www.hibernate.org/hib_docs/v3/re ... ssioncache
Quote:
CacheMode.PUT - write items to the second-level cache, but don't read from the second-level cache
CacheMode.REFRESH - write items to the second-level cache, but don't read from the second-level cache, bypass the effect of hibernate.cache.use_minimal_puts, forcing a refresh of the second-level cache for all items read from the database
Does that mean in CacheMode.PUT, any update made in the session will be put in the cache but anything read (but not updated by the session) will not be put in second-level cache.
Or in other words, if say an entity A in the second-level cache is stale, in CacheMode.PUT, after it is read from DB, the updated value will not be put into the cache?
Thanks.
Hibernate version:
3.2.2ga