org.hibernate.cache.infinispan.builder.infinispan-configs-local.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hibernate-infinispan
Show all versions of hibernate-infinispan
A module of the Hibernate Core project
<?xml version="1.0" encoding="UTF-8"?> <!-- ~ Hibernate, Relational Persistence for Idiomatic Java ~ ~ License: GNU Lesser General Public License (LGPL), version 2.1 or later. ~ See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>. --> <infinispan xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:infinispan:config:8.2" xsi:schemaLocation="urn:infinispan:config:8.2 http://www.infinispan.org/schemas/infinispan-config-8.2.xsd"> <!-- This configuration is suitable for non-clustered environments, where only single instance accesses the DB --> <cache-container name="SampleCacheManager" statistics="false" default-cache="the-default-cache" shutdown-hook="DEFAULT"> <jmx duplicate-domains="true"/> <local-cache-configuration name="the-default-cache" statistics="false" /> <!-- Default configuration is appropriate for entity/collection caching. --> <local-cache-configuration name="entity" simple-cache="true" statistics="false" statistics-available="false"> <transaction mode="NONE" /> <eviction size="10000" strategy="LRU"/> <expiration max-idle="100000" interval="5000"/> </local-cache-configuration> <!-- A config appropriate for query caching. Does not replicate queries. --> <local-cache-configuration name="local-query" simple-cache="true" statistics="false" statistics-available="false"> <transaction mode="NONE" /> <eviction size="10000" strategy="LRU"/> <expiration max-idle="100000" interval="5000"/> </local-cache-configuration> <local-cache-configuration name="timestamps" simple-cache="true" statistics="false" statistics-available="false"> <locking concurrency-level="1000" acquire-timeout="15000"/> <!-- Explicitly non transactional --> <transaction mode="NONE"/> <!-- Don't ever evict modification timestamps --> <eviction strategy="NONE"/> <expiration interval="0"/> </local-cache-configuration> <!-- When providing custom configuration, always make this cache local and non-transactional. To avoid possible leaks, use expiration (max idle time). Optimize for speed.--> <local-cache-configuration name="pending-puts" simple-cache="true" statistics="false" statistics-available="false"> <transaction mode="NONE"/> <expiration max-idle="60000" /> </local-cache-configuration> </cache-container> </infinispan>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy