Sitelet https://github.com/ramsai1729/Rainfall-ehcache/commit/1c4153eca7b6a33585f44d63dab84ab3f1cbc269
Skip to content

Commit 1c4153e

Browse files
little refactoring
1 parent 55abaa6 commit 1c4153e

4 files changed

Lines changed: 3 additions & 7 deletions

File tree

‎pom.xml‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,6 @@
209209
<scope>provided</scope>
210210
</dependency>
211211

212-
213212
<dependency>
214213
<groupId>nf.fr.eraasoft</groupId>
215214
<artifactId>objectpool</artifactId>

‎src/main/java/io/rainfall/ehcache3/CacheConfig.java‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,8 @@
1818

1919
import io.rainfall.Configuration;
2020
import org.ehcache.Cache;
21-
import org.ehcache.StandaloneCache;
2221

2322
import java.util.ArrayList;
24-
import java.util.Collection;
25-
import java.util.Collections;
2623
import java.util.List;
2724

2825
/**

‎src/test/java/io/rainfall/ehcache/Ehcache3Test.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public void setUp() {
5959
final CacheManager cacheManager = newCacheManagerBuilder()
6060
.withCache("one", CacheConfigurationBuilder.newCacheConfigurationBuilder()
6161
.buildConfig(String.class, byte[].class))
62-
.build();
62+
.build(true);
6363

6464
cache = cacheManager.getCache("one", String.class, byte[].class);
6565

‎src/test/java/io/rainfall/ehcache/PerfTest3.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public void testLoad() throws SyntaxException {
7070
.withCache("two", builder.buildConfig(Long.class, byte[].class))
7171
.withCache("three", builder.buildConfig(Long.class, byte[].class))
7272
.withCache("four", builder.buildConfig(Long.class, byte[].class))
73-
.build();
73+
.build(true);
7474

7575
final Cache<Long, byte[]> one = cacheManager.getCache("one", Long.class, byte[].class);
7676
final Cache<Long, byte[]> two = cacheManager.getCache("two", Long.class, byte[].class);
@@ -157,7 +157,7 @@ public void testReplace() throws SyntaxException {
157157

158158
final CacheManager cacheManager = newCacheManagerBuilder()
159159
.withCache("one", builder.buildConfig(Long.class, Long.class))
160-
.build();
160+
.build(true);
161161

162162
final Cache<Long, Long> one = cacheManager.getCache("one", Long.class, Long.class);
163163

0 commit comments

Comments
 (0)