Changeset 10169 in josm


Ignore:
Timestamp:
2016-05-03T21:21:04+02:00 (4 years ago)
Author:
wiktorn
Message:

Restore IndexDiskCache that was switched off in [9142]

https://issues.apache.org/jira/browse/JCS-159 is already fixed

Closes: #11566 (hopefully)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/cache/JCSCacheManager.java

    r9246 r10169  
    1717import org.apache.commons.jcs.auxiliary.AuxiliaryCacheFactory;
    1818import 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;
     19import org.apache.commons.jcs.auxiliary.disk.block.BlockDiskCacheAttributes;
     20import org.apache.commons.jcs.auxiliary.disk.block.BlockDiskCacheFactory;
    2121import org.apache.commons.jcs.engine.CompositeCacheAttributes;
    2222import org.apache.commons.jcs.engine.behavior.ICompositeCacheAttributes.DiskUsagePattern;
     
    4141    private static long maxObjectTTL        = -1;
    4242    private static final String PREFERENCE_PREFIX = "jcs.cache";
    43     private static final AuxiliaryCacheFactory diskCacheFactory = new IndexedDiskCacheFactory();
     43    private static final AuxiliaryCacheFactory diskCacheFactory = new BlockDiskCacheFactory();
    4444    private static FileLock cacheDirLock;
    4545
     
    188188
    189189    private static IDiskCacheAttributes getDiskCacheAttributes(int maxDiskObjects, String cachePath) {
    190         IndexedDiskCacheAttributes ret = new IndexedDiskCacheAttributes();
     190        BlockDiskCacheAttributes ret = new BlockDiskCacheAttributes();
    191191        ret.setDiskLimitType(IDiskCacheAttributes.DiskLimitType.SIZE);
    192192        ret.setMaxKeySize(maxDiskObjects);
Note: See TracChangeset for help on using the changeset viewer.