we have five types hibernate cacheModes
1 . GET in this mode only session can able to read from the cache, it won't write the items to the cache,
The session may read items from the cache, and add items to the cache
1 . GET in this mode only session can able to read from the cache, it won't write the items to the cache,
2. IGNORE
The session will never interact with the cache, except to invalidate cache items when updates occur3. NORMAL
The session may read items from the cache, and add items to the cache
4. PUT
The session will never read items from the cache, but will add items to the cache as it reads them from the database.
5 REFRESH
The session will never read items from the cache, but will add items to the cache as it reads them from the database.
No comments:
Post a Comment