Example usage for org.springframework.boot.autoconfigure.cache CacheManagerCustomizer customize

List of usage examples for org.springframework.boot.autoconfigure.cache CacheManagerCustomizer customize

Introduction

In this page you can find the example usage for org.springframework.boot.autoconfigure.cache CacheManagerCustomizer customize.

Prototype

void customize(T cacheManager);

Source Link

Document

Customize the cache manager.

Usage

From source file:org.springframework.boot.autoconfigure.cache.CacheManagerCustomizers.java

@SuppressWarnings({ "unchecked", "rawtypes" })
private void customize(CacheManager cacheManager, CacheManagerCustomizer customizer) {
    try {/*www . j a  va 2s  .  c om*/
        customizer.customize(cacheManager);
    } catch (ClassCastException ex) {
        // Possibly a lambda-defined customizer which we could not resolve the generic
        // cache manager type for
        if (logger.isDebugEnabled()) {
            logger.debug("Non-matching cache manager type for customizer: " + customizer, ex);
        }
    }
}