club.zhcs.redission.cache.config.RedissonSpringCacheConfigurationProperties Maven / Gradle / Ivy
package club.zhcs.redission.cache.config;
import java.util.HashMap;
import java.util.Map;
import org.redisson.spring.cache.CacheConfig;
import org.springframework.boot.context.properties.ConfigurationProperties;
import lombok.Data;
/**
* redission 二级缓存配置
*
* @author wkipy
*
*/
@Data
@ConfigurationProperties("redission.cache")
public class RedissonSpringCacheConfigurationProperties {
/**
* 是否开启
*/
boolean enabled = true;
/**
* 缓存配置
*/
Map config = new HashMap<>();
/**
* 序列化模式
*/
SerializationMode serializationMode = SerializationMode.JSON;
/**
* 序列化方式
*
* @author wkipy
*
*/
public enum SerializationMode {
BINARY, JSON
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy