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 Details

    • RedisCacheMetrics

      public RedisCacheMetrics(org.springframework.data.redis.cache.RedisCache cache, Iterable<io.micrometer.core.instrument.Tag> tags)
  • Method Details

    • size

      protected Long size()
      Specified by:
      size in class io.micrometer.core.instrument.binder.cache.CacheMeterBinder<org.springframework.data.redis.cache.RedisCache>
    • hitCount

      protected long hitCount()
      Specified by:
      hitCount in class io.micrometer.core.instrument.binder.cache.CacheMeterBinder<org.springframework.data.redis.cache.RedisCache>
    • missCount

      protected Long missCount()
      Specified by:
      missCount in class io.micrometer.core.instrument.binder.cache.CacheMeterBinder<org.springframework.data.redis.cache.RedisCache>
    • evictionCount

      protected Long evictionCount()
      Specified by:
      evictionCount in class io.micrometer.core.instrument.binder.cache.CacheMeterBinder<org.springframework.data.redis.cache.RedisCache>
    • putCount

      protected long putCount()
      Specified by:
      putCount in class io.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 class io.micrometer.core.instrument.binder.cache.CacheMeterBinder<org.springframework.data.redis.cache.RedisCache>