Class RedisCacheMeterBinderProvider
java.lang.Object
org.springframework.boot.cache.metrics.RedisCacheMeterBinderProvider
- All Implemented Interfaces:
CacheMeterBinderProvider<RedisCache>
public class RedisCacheMeterBinderProvider
extends Object
implements CacheMeterBinderProvider<RedisCache>
CacheMeterBinderProvider implementation for Redis.- Since:
- 4.0.0
- Author:
- Stephane Nicoll
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetMeterBinder(RedisCache cache, Iterable<Tag> tags) Return theMeterBindermanaging the specifiedCacheornullif the specifiedCacheis not supported.
-
Constructor Details
-
RedisCacheMeterBinderProvider
public RedisCacheMeterBinderProvider()
-
-
Method Details
-
getMeterBinder
Description copied from interface:CacheMeterBinderProviderReturn theMeterBindermanaging the specifiedCacheornullif the specifiedCacheis not supported.- Specified by:
getMeterBinderin interfaceCacheMeterBinderProvider<RedisCache>- Parameters:
cache- the cache to instrumenttags- tags to apply to all recorded metrics- Returns:
- a
MeterBinderhandling the specifiedCacheornull
-