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