Upgrade to EhCache 3.0.1

Closes gh-5898
This commit is contained in:
Stephane Nicoll
2016-05-10 07:33:39 +02:00
parent 3348ed5bb3
commit 9e60340c0e
3 changed files with 8 additions and 6 deletions

View File

@@ -5,9 +5,9 @@
#
# JCache configuration (example with hazelcast).
# JCache configuration (example with ehcache 3).
#
#spring.cache.jcache.config=hazelcast.xml
#spring.cache.jcache.config=ehcache3.xml
#

View File

@@ -1,12 +1,14 @@
<config xmlns='http://www.ehcache.org/v3'
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
xsi:schemaLocation="http://www.ehcache.org/v3 http://www.ehcache.org/schema/ehcache-core-3.0.xsd">
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:jsr107="http://www.ehcache.org/v3/jsr107"
xsi:schemaLocation="http://www.ehcache.org/v3 http://www.ehcache.org/schema/ehcache-core-3.0.xsd
http://www.ehcache.org/v3/jsr107 http://www.ehcache.org/schema/ehcache-107-ext-3.0.xsd">
<cache alias="countries">
<expiry>
<ttl unit="seconds">600</ttl>
</expiry>
<heap unit="entries">200</heap>
<jsr107:mbeans enable-statistics="true"/>
</cache>
</config>