- Timestamp:
- 2015-12-23T23:39:12+01:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/cache/JCSCacheManager.java
r9070 r9142 17 17 import org.apache.commons.jcs.auxiliary.AuxiliaryCacheFactory; 18 18 import org.apache.commons.jcs.auxiliary.disk.behavior.IDiskCacheAttributes; 19 import org.apache.commons.jcs.auxiliary.disk. block.BlockDiskCacheAttributes;20 import org.apache.commons.jcs.auxiliary.disk. block.BlockDiskCacheFactory;19 import org.apache.commons.jcs.auxiliary.disk.indexed.IndexedDiskCacheAttributes; 20 import org.apache.commons.jcs.auxiliary.disk.indexed.IndexedDiskCacheFactory; 21 21 import org.apache.commons.jcs.engine.CompositeCacheAttributes; 22 22 import org.apache.commons.jcs.engine.behavior.ICompositeCacheAttributes.DiskUsagePattern; … … 41 41 private static long maxObjectTTL = -1; 42 42 private static final String PREFERENCE_PREFIX = "jcs.cache"; 43 private static final AuxiliaryCacheFactory diskCacheFactory = new BlockDiskCacheFactory();43 private static final AuxiliaryCacheFactory diskCacheFactory = new IndexedDiskCacheFactory(); 44 44 private static FileLock cacheDirLock; 45 45 … … 184 184 185 185 private static IDiskCacheAttributes getDiskCacheAttributes(int maxDiskObjects, String cachePath) { 186 BlockDiskCacheAttributes ret = new BlockDiskCacheAttributes();186 IndexedDiskCacheAttributes ret = new IndexedDiskCacheAttributes(); 187 187 ret.setDiskLimitType(IDiskCacheAttributes.DiskLimitType.SIZE); 188 188 ret.setMaxKeySize(maxDiskObjects);
Note:
See TracChangeset
for help on using the changeset viewer.