java.lang.Object | |
↳ | org.hibernate.CacheMode |
Controls how the session interacts with the second-level cache and query cache.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
GET | The session may read items from the cache, but will not add items, except to invalidate items when updates occur | ||||||||||
IGNORE | The session will never interact with the cache, except to invalidate cache items when updates occur | ||||||||||
NORMAL | The session may read items from the cache, and add items to the cache | ||||||||||
PUT | The session will never read items from the cache, but will add items to the cache as it reads them from the database. | ||||||||||
REFRESH | The session will never read items from the cache, but will add items to the cache as it reads them from the database. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
The session may read items from the cache, but will not add items, except to invalidate items when updates occur
The session will never interact with the cache, except to invalidate cache items when updates occur
The session may read items from the cache, and add items to the cache
The session will never read items from the cache, but will add items to the cache as it reads them from the database.
The session will never read items from the cache, but will add items to the cache as it reads them from the database. In this mode, the effect of hibernate.cache.use_minimal_puts is bypassed, in order to force a cache refresh