Changeset 9064 in josm
- Timestamp:
- 2015-11-25T22:27:31+01:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/cache/JCSCacheManager.java
r8991 r9064 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. indexed.IndexedDiskCacheAttributes;20 import org.apache.commons.jcs.auxiliary.disk. indexed.IndexedDiskCacheFactory;19 import org.apache.commons.jcs.auxiliary.disk.block.BlockDiskCacheAttributes; 20 import org.apache.commons.jcs.auxiliary.disk.block.BlockDiskCacheFactory; 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 IndexedDiskCacheFactory();43 private static final AuxiliaryCacheFactory diskCacheFactory = new BlockDiskCacheFactory(); 44 44 private static FileLock cacheDirLock; 45 45 … … 184 184 185 185 private static IDiskCacheAttributes getDiskCacheAttributes(int maxDiskObjects, String cachePath) { 186 IndexedDiskCacheAttributes ret = new IndexedDiskCacheAttributes();186 BlockDiskCacheAttributes ret = new BlockDiskCacheAttributes(); 187 187 ret.setDiskLimitType(IDiskCacheAttributes.DiskLimitType.SIZE); 188 188 ret.setMaxKeySize(maxDiskObjects);
Note:
See TracChangeset
for help on using the changeset viewer.