接口 CacheStatisticsProvider<C extends org.springframework.cache.Cache>
- 类型参数:
C- TheCachetype
- 所有已知实现类:
AbstractJmxCacheStatisticsProvider,CaffeineCacheStatisticsProvider,ConcurrentMapCacheStatisticsProvider,EhCacheStatisticsProvider,GuavaCacheStatisticsProvider,HazelcastCacheStatisticsProvider,InfinispanCacheStatisticsProvider,JCacheCacheStatisticsProvider
public interface CacheStatisticsProvider<C extends org.springframework.cache.Cache>
Provide aCacheStatisticsbased on aCache.- 从以下版本开始:
- 1.3.0
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 CacheStatisticsgetCacheStatistics(org.springframework.cache.CacheManager cacheManager, C cache)Return the currentCacheStatisticssnapshot for the specifiedCacheornullif the given cache could not be handled.
方法详细资料
getCacheStatistics
CacheStatistics getCacheStatistics(org.springframework.cache.CacheManager cacheManager, C cache)
Return the currentCacheStatisticssnapshot for the specifiedCacheornullif the given cache could not be handled.- 参数:
cacheManager- theCacheManagerhandling this cachecache- the cache to handle- 返回:
- the current cache statistics or
null