committed by
Sam Brannen
parent
487e14d549
commit
f8340838b3
@@ -55,7 +55,7 @@ public class NoOpCacheManager implements CacheManager {
|
||||
public Cache getCache(String name) {
|
||||
Cache cache = this.caches.get(name);
|
||||
if (cache == null) {
|
||||
this.caches.putIfAbsent(name, new NoOpCache(name));
|
||||
this.caches.computeIfAbsent(name, key -> new NoOpCache(name));
|
||||
synchronized (this.cacheNames) {
|
||||
this.cacheNames.add(name);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user