Hibernate Cache Properties
By: Felix
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 [email protected](strategy="..") is used to override this default. |
Archived Comments
1. Brettkip
View Tutorial By: Brettkip at 2017-07-19 08:06:06
Comment on this tutorial
- Data Science
- Android
- AJAX
- ASP.net
- C
- C++
- C#
- Cocoa
- Cloud Computing
- HTML5
- Java
- Javascript
- JSF
- JSP
- J2ME
- Java Beans
- EJB
- JDBC
- Linux
- Mac OS X
- iPhone
- MySQL
- Office 365
- Perl
- PHP
- Python
- Ruby
- VB.net
- Hibernate
- Struts
- SAP
- Trends
- Tech Reviews
- WebServices
- XML
- Certification
- Interview
categories
Related Tutorials
Primary keys assigned by triggers in Hibernate
Assigned identifiers in Hibernate
Identity columns and sequences in Hibernate
EntityNameResolvers in Hibernate
Tuplizers (org.hibernate.tuple.Tuplizer) in Hibernate
equals() and hashCode() in Hibernate
Fetching strategies in Hibernate
Creating Connection Pool for JDBC Connections in Hibernate
Hibernate JDBC and Connection Properties
Hibernate Transaction Properties