All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pig4cloud.plugin.cache.metrics.RedisCaffeineCacheMeterConfiguration Maven / Gradle / Ivy

There is a newer version: 3.0.0
Show newest version
package com.pig4cloud.plugin.cache.metrics;

import io.micrometer.core.instrument.binder.MeterBinder;
import org.springframework.boot.actuate.metrics.cache.CacheMeterBinderProvider;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Configure {@link org.springframework.boot.actuate.metrics.cache.CacheMeterBinderProvider} beans.
 *
 * @author L.cm
 */
@Configuration(proxyBeanMethods = false)
@ConditionalOnClass({MeterBinder.class, CacheMeterBinderProvider.class})
public class RedisCaffeineCacheMeterConfiguration {

	@Bean
	public RedisCaffeineCacheMeterBinderProvider redisCaffeineCacheMeterBinderProvider() {
		return new RedisCaffeineCacheMeterBinderProvider();
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy