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

com.ideaaedi.extspringcache.properties.ExtSpringCacheProperties Maven / Gradle / Ivy

The newest version!
package com.ideaaedi.extspringcache.properties;

import com.ideaaedi.extspringcache.properties.nested.ExtCaffeineProperties;
import com.ideaaedi.extspringcache.properties.nested.ExtRedisCaffeineProperties;
import com.ideaaedi.extspringcache.properties.nested.ExtRedisProperties;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.NestedConfigurationProperty;

/**
 * (non-javadoc)
 *
 * @author JustryDeng 
 * @since 1.0.0
 */
@Data
@ConfigurationProperties("ext.spring.cache")
public class ExtSpringCacheProperties {
    
    /**
     * 是否打印banner
     */
    private boolean printBanner = true;
    
    /**
     * 当没有ext管理器可以被总管理器ExtCacheManager管理时,管理器ExtCacheManager是否管理默认的CacheManager
     */
    private boolean useDefaultCacheManagerIfMiss = true;
    
    /**
     * redis缓存配置
     */
    @NestedConfigurationProperty
    private ExtRedisProperties redis = new ExtRedisProperties();
    
    /**
     * caffeine缓存配置
     */
    @NestedConfigurationProperty
    private ExtCaffeineProperties caffeine = new ExtCaffeineProperties();
    
    /**
     * redis & caffeine 缓存配置
     */
    @NestedConfigurationProperty
    private ExtRedisCaffeineProperties redisCaffeine = new ExtRedisCaffeineProperties();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy