public SoftHardCacheMap(final int protectedQueueSize, final int probationalQueueSize) { mySLRUMap = new SLRUMap<K, V>(protectedQueueSize, probationalQueueSize); mySoftLinkMap = new SoftValueHashMap<K, V>(); }
@Nullable @Override public CachedValueProvider.Result<Map<List<URL>, AntClassLoader>> compute(Project project) { final Map<List<URL>, AntClassLoader> map = new SoftValueHashMap<List<URL>, AntClassLoader>(); return CachedValueProvider.Result.create(map, ProjectRootManager.getInstance(project)); }