Changeset 8510 in josm for trunk/src/org/openstreetmap/josm/data/cache/JCSCacheManager.java
- Timestamp:
- 2015-06-20T23:42:21+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/cache/JCSCacheManager.java
r8509 r8510 123 123 * @throws IOException if directory is not found 124 124 */ 125 public static <K, V> CacheAccess<K, V> getCache(String cacheName) throws IOException {125 public static <K, V> CacheAccess<K, V> getCache(String cacheName) throws IOException { 126 126 return getCache(cacheName, DEFAULT_MAX_OBJECTS_IN_MEMORY.get().intValue(), 0, null); 127 127 } … … 136 136 * @throws IOException if directory is not found 137 137 */ 138 public static <K,V> CacheAccess<K, V> getCache(String cacheName, int maxMemoryObjects, int maxDiskObjects, String cachePath) throws IOException { 138 public static <K, V> CacheAccess<K, V> getCache(String cacheName, int maxMemoryObjects, int maxDiskObjects, String cachePath) 139 throws IOException { 139 140 if (cacheManager != null) 140 141 return getCacheInner(cacheName, maxMemoryObjects, maxDiskObjects, cachePath); … … 147 148 } 148 149 149 150 150 @SuppressWarnings("unchecked") 151 private static <K, V> CacheAccess<K, V> getCacheInner(String cacheName, int maxMemoryObjects, int maxDiskObjects, String cachePath) {151 private static <K, V> CacheAccess<K, V> getCacheInner(String cacheName, int maxMemoryObjects, int maxDiskObjects, String cachePath) { 152 152 CompositeCache<K, V> cc = cacheManager.getCache(cacheName, getCacheAttributes(maxMemoryObjects)); 153 153
Note:
See TracChangeset
for help on using the changeset viewer.