All Downloads are FREE. Search and download functionalities are using the official Maven repository.

spring-config.ehcache.xml Maven / Gradle / Ivy

The newest version!
<config xmlns="http://www.ehcache.org/v3">

	<persistence directory="${java.io.tmpdir}/shiro-ehcache" />
	
	<cache alias="shiro-activeSessionCache">
		<key-type serializer="org.ehcache.impl.serialization.CompactJavaSerializer">
			java.lang.Object
		</key-type>

		<value-type serializer="org.ehcache.impl.serialization.CompactJavaSerializer">
			java.lang.Object
		</value-type>

		<resources>
			<heap unit="entries">10000</heap>
			<disk unit="GB">1</disk>
		</resources>
	</cache>

	<cache alias="org.apache.shiro.realm.text.PropertiesRealm-0-accounts">
		<key-type serializer="org.ehcache.impl.serialization.CompactJavaSerializer">
			java.lang.Object
		</key-type>

		<value-type serializer="org.ehcache.impl.serialization.CompactJavaSerializer">
			java.lang.Object
		</value-type>

		<resources>
			<heap unit="entries">1000</heap>
			<disk unit="GB">1</disk>
		</resources>
	</cache>

	<cache-template name="defaultCacheConfiguration">
		<expiry>
			<tti unit="seconds">120</tti>
		</expiry>
		<heap unit="entries">10000</heap>
	</cache-template>

</config>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy