类 CaffeineCacheStatisticsProvider
- java.lang.Object
- org.springframework.boot.actuate.cache.CaffeineCacheStatisticsProvider
- 所有已实现的接口:
CacheStatisticsProvider<org.springframework.cache.caffeine.CaffeineCache>
public class CaffeineCacheStatisticsProvider extends Object implements CacheStatisticsProvider<org.springframework.cache.caffeine.CaffeineCache>
CacheStatisticsProvider
implementation for Caffeine.- 从以下版本开始:
- 1.4.0
构造器概要
构造器 构造器 说明 CaffeineCacheStatisticsProvider()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 CacheStatistics
getCacheStatistics(org.springframework.cache.CacheManager cacheManager, org.springframework.cache.caffeine.CaffeineCache cache)
Return the currentCacheStatistics
snapshot for the specifiedCache
ornull
if the given cache could not be handled.
构造器详细资料
CaffeineCacheStatisticsProvider
public CaffeineCacheStatisticsProvider()
方法详细资料
getCacheStatistics
public CacheStatistics getCacheStatistics(org.springframework.cache.CacheManager cacheManager, org.springframework.cache.caffeine.CaffeineCache cache)
从接口复制的说明:CacheStatisticsProvider
Return the currentCacheStatistics
snapshot for the specifiedCache
ornull
if the given cache could not be handled.- 指定者:
getCacheStatistics
在接口中CacheStatisticsProvider<org.springframework.cache.caffeine.CaffeineCache>
- 参数:
cacheManager
- theCacheManager
handling this cachecache
- the cache to handle- 返回:
- the current cache statistics or
null