We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
` public Cache<String, String> kvCache; @PostConstruct public void init() { QuickConfig kvQc = QuickConfig.newBuilder("kvCache") .expire(Duration.ofHours(72)) .cacheType(CacheType.BOTH) // 创建一个两级缓存 .localLimit(500000) // 本地缓存元素个数限制,只对CacheType.LOCAL和CacheType.BOTH有效 .build(); kvCache = cacheManager.getOrCreateCache(kvQc); }
@async public void clearKvCacheAsync() { kvCache.removeAll(*********);//要删除所有的缓存 }
`
The text was updated successfully, but these errors were encountered:
没有你想要的那种接口
Sorry, something went wrong.
No branches or pull requests
`
public Cache<String, String> kvCache;
@PostConstruct
public void init() {
QuickConfig kvQc = QuickConfig.newBuilder("kvCache")
.expire(Duration.ofHours(72))
.cacheType(CacheType.BOTH) // 创建一个两级缓存
.localLimit(500000) // 本地缓存元素个数限制,只对CacheType.LOCAL和CacheType.BOTH有效
.build();
kvCache = cacheManager.getOrCreateCache(kvQc);
}
@async
public void clearKvCacheAsync() {
kvCache.removeAll(*********);//要删除所有的缓存
}
`
The text was updated successfully, but these errors were encountered: