public class GuavaCacheManager extends Object implements CacheManager
CacheManager based on LoadingCache.| 构造器和说明 |
|---|
GuavaCacheManager() |
public void removeCache(String cacheName)
Delete the corresponding cache if it already exists.
The Cache.isExpired() of a deleted cache object must return false.
removeCache 在接口中 CacheManagercacheName - cache namepublic <K> Cache<K> getCache(String cacheName)
Get cache, if it does not exist create it first.
The obtained cache is not always guaranteed to be valid,
caller needs to ensure the timeliness of the cache itself through Cache.isExpired().
getCache 在接口中 CacheManagerK - key typecacheName - cache nameCopyright © 2023. All rights reserved.