Class RedisCacheMetrics
java.lang.Object
io.micrometer.core.instrument.binder.cache.CacheMeterBinder<org.springframework.data.redis.cache.RedisCache>
org.springframework.boot.actuate.metrics.cache.RedisCacheMetrics
- All Implemented Interfaces:
io.micrometer.core.instrument.binder.MeterBinder
public class RedisCacheMetrics
extends io.micrometer.core.instrument.binder.cache.CacheMeterBinder<org.springframework.data.redis.cache.RedisCache>
CacheMeterBinder
for RedisCache
.- Since:
- 2.4.0
- Author:
- Stephane Nicoll
-
Constructor Summary
ConstructorDescriptionRedisCacheMetrics
(org.springframework.data.redis.cache.RedisCache cache, Iterable<io.micrometer.core.instrument.Tag> tags) -
Method Summary
Methods inherited from class io.micrometer.core.instrument.binder.cache.CacheMeterBinder
bindTo, getCache, getTagsWithCacheName
-
Constructor Details
-
RedisCacheMetrics
public RedisCacheMetrics(org.springframework.data.redis.cache.RedisCache cache, Iterable<io.micrometer.core.instrument.Tag> tags)
-
-
Method Details
-
size
- Specified by:
size
in classio.micrometer.core.instrument.binder.cache.CacheMeterBinder<org.springframework.data.redis.cache.RedisCache>
-
hitCount
protected long hitCount()- Specified by:
hitCount
in classio.micrometer.core.instrument.binder.cache.CacheMeterBinder<org.springframework.data.redis.cache.RedisCache>
-
missCount
- Specified by:
missCount
in classio.micrometer.core.instrument.binder.cache.CacheMeterBinder<org.springframework.data.redis.cache.RedisCache>
-
evictionCount
- Specified by:
evictionCount
in classio.micrometer.core.instrument.binder.cache.CacheMeterBinder<org.springframework.data.redis.cache.RedisCache>
-
putCount
protected long putCount()- Specified by:
putCount
in classio.micrometer.core.instrument.binder.cache.CacheMeterBinder<org.springframework.data.redis.cache.RedisCache>
-
bindImplementationSpecificMetrics
protected void bindImplementationSpecificMetrics(io.micrometer.core.instrument.MeterRegistry registry) - Specified by:
bindImplementationSpecificMetrics
in classio.micrometer.core.instrument.binder.cache.CacheMeterBinder<org.springframework.data.redis.cache.RedisCache>
-