HHH-13124 - The CachingRegionFactory resolution algorithm has changed
This commit is contained in:
parent
4900832cc2
commit
39d9f84920
|
@ -35,7 +35,8 @@ Detailed information is provided later in this chapter.
|
||||||
Besides specific provider configuration, there are a number of configurations options on the Hibernate side of the integration that control various caching behaviors:
|
Besides specific provider configuration, there are a number of configurations options on the Hibernate side of the integration that control various caching behaviors:
|
||||||
|
|
||||||
`hibernate.cache.use_second_level_cache`::
|
`hibernate.cache.use_second_level_cache`::
|
||||||
Enable or disable second level caching overall. The default is true, although the default region factory is `NoCachingRegionFactory`.
|
Enable or disable second level caching overall. By default, if the currently configured
|
||||||
|
https://docs.jboss.org/hibernate/orm/{majorMinorVersion}/javadocs/org/hibernate/cache/spi/RegionFactory.html[`RegionFactory`] is not the `NoCachingRegionFactory`, then the second-level cache is going to be enabled. Otherwise, the second-level cache is disabled.
|
||||||
`hibernate.cache.use_query_cache`::
|
`hibernate.cache.use_query_cache`::
|
||||||
Enable or disable second level caching of query results. The default is false.
|
Enable or disable second level caching of query results. The default is false.
|
||||||
`hibernate.cache.query_cache_factory`::
|
`hibernate.cache.query_cache_factory`::
|
||||||
|
|
|
@ -1067,7 +1067,10 @@ public interface AvailableSettings extends org.hibernate.jpa.AvailableSettings {
|
||||||
String CACHE_PROVIDER_CONFIG = "hibernate.cache.provider_configuration_file_resource_path";
|
String CACHE_PROVIDER_CONFIG = "hibernate.cache.provider_configuration_file_resource_path";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Enable the second-level cache (enabled by default)
|
* Enable the second-level cache.
|
||||||
|
* <p>
|
||||||
|
* By default, if the currently configured {@link org.hibernate.cache.spi.RegionFactory} is not the {@link org.hibernate.cache.internal.NoCachingRegionFactory},
|
||||||
|
* then the second-level cache is going to be enabled. Otherwise, the second-level cache is disabled.
|
||||||
*/
|
*/
|
||||||
String USE_SECOND_LEVEL_CACHE = "hibernate.cache.use_second_level_cache";
|
String USE_SECOND_LEVEL_CACHE = "hibernate.cache.use_second_level_cache";
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue