/** * Index the cache key by the index values. */ public void putCacheKeyByIndex(CacheIndex index, CacheId indexValues, CacheKey cacheKey, ClassDescriptor descriptor) { if (this.cacheIndexes == null) { return; } if (indexValues == null) { return; } IdentityMap map = this.cacheIndexes.get(index); if (map == null) { synchronized (this.cacheIndexes) { map = this.cacheIndexes.get(index); if (map == null) { map = buildNewIdentityMap(index.getCacheType(), index.getCacheSize(), null, false); this.cacheIndexes.put(index, map); } } } map.put(indexValues, cacheKey, null, 0); }
/** * Index the cache key by the index values. */ public void putCacheKeyByIndex(CacheIndex index, CacheId indexValues, CacheKey cacheKey, ClassDescriptor descriptor) { if (this.cacheIndexes == null) { return; } if (indexValues == null) { return; } IdentityMap map = this.cacheIndexes.get(index); if (map == null) { synchronized (this.cacheIndexes) { map = this.cacheIndexes.get(index); if (map == null) { map = buildNewIdentityMap(index.getCacheType(), index.getCacheSize(), null, false); this.cacheIndexes.put(index, map); } } } map.put(indexValues, cacheKey, null, 0); }