Hibernate Cache Properties

By: Felix Emailed: 1730 times Printed: 2344 times    

Latest comments
By: rohit kumar - how this program is work
By: Kirti - Hi..thx for the hadoop in
By: Spijker - I have altered the code a
By: ali mohammed - why we use the java in ne
By: ali mohammed - why we use the java in ne
By: mizhelle - when I exported the data
By: raul - no output as well, i'm ge
By: Rajesh - thanx very much...
By: Suindu De - Suppose we are executing

The table below lists the Hibernate Cache Properties and their purpose. For easier understanding, and example is also provided for each property.

 

Property name Purpose
hibernate.cache.provider_class The classname of a custom CacheProvider.

e.g. classname.of.CacheProvider

hibernate.cache.use_minimal_puts Optimizes second-level cache operation to minimize writes, at the cost of more frequent reads. This setting is most useful for clustered caches and, in Hibernate3, is enabled by default for clustered cache implementations. 

e.g. true|false

hibernate.cache.use_query_cache Enables the query cache. Individual queries still have to be set cachable. 

e.g. true|false

hibernate.cache.
use_second_level_cache
Can be used to completely disable the second level cache, which is enabled by default for classes which specify a <cache> mapping.

e.g. true|false

hibernate.cache.query_cache_factory The classname of a custom QueryCache interface, defaults to the built-in StandardQueryCache.

e.g. classname.of.QueryCache

hibernate.cache.region_prefix A prefix to use for second-level cache region names.

e.g. prefix

hibernate.cache.use_structured_entries Forces Hibernate to store data in the second-level cache in a more human-friendly format. 

e.g.true|false

hibernate.cache.
default_cache_concurrency_strategy
Setting used to give the name of the defaultorg.hibernate.annotations.CacheConcurrencyStrategy to use when either @Cacheable or @Cache is used.@Cache(strategy="..") is used to override this default.

Hibernate Home | All Hibernate Tutorials | Latest Hibernate Tutorials

Sponsored Links

If this tutorial doesn't answer your question, or you have a specific question, just ask an expert here. Post your question to get a direct answer.



Bookmark and Share

Comments(0)


Be the first one to add a comment

Your name (required):


Your email(required, will not be shown to the public):


Your sites URL (optional):


Your comments:



More Tutorials by Felix
Hibernate JDBC and Connection Properties
Hibernate Transaction Properties
Hibernate Cache Properties
Hibernate Configuration Properties
Creating Connection Pool for JDBC Connections in Hibernate
SessionFactory in Hibernate
Programmatic configuration in Hibernate
Contextual sessions in Hibernate
Some Basic APIs in Hibernate
A sample Hibernate Web Application using Servlets
Step by Step Hibernate - Your First Hibernate Application
Tutorial Using the Java Persistence API (JPA) in Hibernate
Download Hibernate latest version

More Tutorials in Hibernate
Fetching strategies in Hibernate
equals() and hashCode() in Hibernate
Tuplizers (org.hibernate.tuple.Tuplizer) in Hibernate
EntityNameResolvers in Hibernate
Hi/lo algorithm in Hibernate
Identity columns and sequences in Hibernate
Assigned identifiers in Hibernate
Primary keys assigned by triggers in Hibernate
Formula in Hibernate
Step by Step Hibernate - Your First Hibernate Application
A sample Hibernate Web Application using Servlets
Some Basic APIs in Hibernate
Contextual sessions in Hibernate
Programmatic configuration in Hibernate
SessionFactory in Hibernate

More Latest News
Most Viewed Articles (in Hibernate )
Hibernate Vs. JDBC ( A comparison)
Programmatic configuration in Hibernate
Step by Step Hibernate - Your First Hibernate Application
What is component mapping in hibernate?
Contextual sessions in Hibernate
Hibernate Configuration Properties
Download Hibernate latest version
A sample Hibernate Web Application using Servlets
Hibernate Cache Properties
Fetching strategies in Hibernate
Tuplizers (org.hibernate.tuple.Tuplizer) in Hibernate
Hi/lo algorithm in Hibernate
Assigned identifiers in Hibernate
Types of inheritence models in Hibernate
Tutorial Using the Java Persistence API (JPA) in Hibernate
Most Emailed Articles (in Hibernate)
Download Hibernate latest version
Tutorial Using the Java Persistence API (JPA) in Hibernate
EntityNameResolvers in Hibernate
Assigned identifiers in Hibernate
Formula in Hibernate
Delta Electronics Chairman Bruce Cheng Endows NCKU Build Y.S. Sun Green Building Research Center
Hibernate Vs. JDBC ( A comparison)
Step by Step Hibernate - Your First Hibernate Application
Types of inheritence models in Hibernate
What is component mapping in hibernate?
Paging Through the Result Set in Hibernate
A sample Hibernate Web Application using Servlets
Some Basic APIs in Hibernate
Contextual sessions in Hibernate
Programmatic configuration in Hibernate