我只是使用caffeine缓存的初学者,在少数用例中需要澄清。
- 我看到caffeine仅支持同步缓存的invalidate / invalidateAll函数。我想知道为什么AsyncCache不支持无效功能吗?
TypeError: can only concatenate str (not "list") to str
- 还想弄清楚AsyncCache中的put方法是否将条目异步加载到缓存中?我想手动将条目列表添加到AsyncCache中。不确定asyncCache.asMap()。putAll()还是使用asyncCache.put()迭代并添加条目是否会异步进行该工作?
有人可以详细说明吗?