package com.kidgrow.redis.properties;
|
|
import lombok.Getter;
|
import lombok.Setter;
|
import org.springframework.boot.context.properties.ConfigurationProperties;
|
|
import java.util.List;
|
|
/**
|
* 石家庄喜高科技有限责任公司 版权所有 © Copyright 2020<br>
|
*
|
* @Description: 缓存配置<br>
|
* @Project: <br>
|
* @CreateDate: Created in 2020/2/4 16:05 <br>
|
* @Author: <a href="4345453@kidgrow.com">liuke</a>
|
*/
|
@Setter
|
@Getter
|
@ConfigurationProperties(prefix = "kidgrow.cache-manager")
|
public class CacheManagerProperties {
|
private List<CacheConfig> configs;
|
|
@Setter
|
@Getter
|
public static class CacheConfig {
|
/**
|
* cache key
|
*/
|
private String key;
|
/**
|
* 过期时间,sec
|
*/
|
private long second = 60;
|
}
|
}
|