Skip to content

Commit 00ab3f4

Browse files
committed
Default decorator should be LRU for consistency (though this block is
never entered)
1 parent af7b0d7 commit 00ab3f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/org/apache/ibatis/mapping/CacheBuilder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323

2424
import org.apache.ibatis.cache.Cache;
2525
import org.apache.ibatis.cache.CacheException;
26-
import org.apache.ibatis.cache.decorators.FifoCache;
2726
import org.apache.ibatis.cache.decorators.LoggingCache;
27+
import org.apache.ibatis.cache.decorators.LruCache;
2828
import org.apache.ibatis.cache.decorators.ScheduledCache;
2929
import org.apache.ibatis.cache.decorators.SerializedCache;
3030
import org.apache.ibatis.cache.decorators.SynchronizedCache;
@@ -99,7 +99,7 @@ private void setDefaultImplementations() {
9999
if (implementation == null) {
100100
implementation = PerpetualCache.class;
101101
if (decorators.size() == 0) {
102-
decorators.add(FifoCache.class);
102+
decorators.add(LruCache.class);
103103
}
104104
}
105105
}

0 commit comments

Comments
 (0)