Closed
Description
- spring-context-support 5.3.18
- jdk version:17.0.4
here is my thread stack, block 193 threads
CaffeineCacheManager.java
public Cache getCache(String name) {
return this.cacheMap.computeIfAbsent(name, cacheName ->
this.dynamic ? createCaffeineCache(cacheName) : null);
}
here is my code:
@CacheConfig(cacheNames = "branch")
public class BranchServiceImpl {
@Cacheable(key = "#exp.id")
public List<Branch> findById(Experiment exp) {
// ……
}
@CachePut(key = "#exp.id")
public List<Branch> updateCacheByExpId(Experiment exp, List<Branch> branches) {
// ……
}
}