Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
假设我从一个这样的 CacheManager 开始: private static CacheManager manager = CacheManager.create();
当我调用 getCache 或 addCache 时,我需要先在 CacheManager 上进行同步吗?
当我在Cache上调用put或get时,我应该先在Cache上同步吗?
这些文档暗示您必须在 CacheManager 实例上进行同步,例如,如果给定的缓存“已经存在”在缓存中,addCache会引发异常。