Browse Source

Add dependency management for Ehcache 3

Closes gh-5725
pull/5745/head
Stephane Nicoll 10 years ago
parent
commit
0cfcbeb40e
  1. 6
      spring-boot-dependencies/pom.xml
  2. 6
      spring-boot-samples/spring-boot-sample-cache/pom.xml
  3. 12
      spring-boot-samples/spring-boot-sample-cache/src/main/resources/ehcache3.xml

6
spring-boot-dependencies/pom.xml

@ -69,6 +69,7 @@ @@ -69,6 +69,7 @@
<dom4j.version>1.6.1</dom4j.version>
<dropwizard-metrics.version>3.1.2</dropwizard-metrics.version>
<ehcache.version>2.10.1</ehcache.version>
<ehcache3.version>3.0.0</ehcache3.version>
<embedded-mongo.version>1.50.2</embedded-mongo.version>
<flyway.version>3.2.1</flyway.version>
<freemarker.version>2.3.23</freemarker.version>
@ -1564,6 +1565,11 @@ @@ -1564,6 +1565,11 @@
<artifactId>websocket-server</artifactId>
<version>${jetty.version}</version>
</dependency>
<dependency>
<groupId>org.ehcache</groupId>
<artifactId>ehcache</artifactId>
<version>${ehcache3.version}</version>
</dependency>
<dependency>
<groupId>org.elasticsearch</groupId>
<artifactId>elasticsearch</artifactId>

6
spring-boot-samples/spring-boot-sample-cache/pom.xml vendored

@ -49,6 +49,12 @@ @@ -49,6 +49,12 @@
</dependency>
-->
<!--
<dependency>
<groupId>org.ehcache</groupId>
<artifactId>ehcache</artifactId>
</dependency>
-->
<!--
<dependency>
<groupId>com.hazelcast</groupId>
<artifactId>hazelcast</artifactId>

12
spring-boot-samples/spring-boot-sample-cache/src/main/resources/ehcache3.xml vendored

@ -0,0 +1,12 @@ @@ -0,0 +1,12 @@
<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">
<cache alias="countries">
<expiry>
<ttl unit="seconds">600</ttl>
</expiry>
<heap unit="entries">200</heap>
</cache>
</config>
Loading…
Cancel
Save