提交 | 用户 | 时间
|
e7c126
|
1 |
package com.iailab.framework.redis.config; |
H |
2 |
|
|
3 |
import lombok.Data; |
|
4 |
import org.springframework.boot.context.properties.ConfigurationProperties; |
|
5 |
import org.springframework.validation.annotation.Validated; |
|
6 |
|
|
7 |
/** |
|
8 |
* Cache 配置项 |
|
9 |
* |
|
10 |
* @author Wanwan |
|
11 |
*/ |
|
12 |
@ConfigurationProperties("iailab.cache") |
|
13 |
@Data |
|
14 |
@Validated |
|
15 |
public class IailabCacheProperties { |
|
16 |
|
|
17 |
/** |
|
18 |
* {@link #redisScanBatchSize} 默认值 |
|
19 |
*/ |
|
20 |
private static final Integer REDIS_SCAN_BATCH_SIZE_DEFAULT = 30; |
|
21 |
|
|
22 |
/** |
|
23 |
* redis scan 一次返回数量 |
|
24 |
*/ |
|
25 |
private Integer redisScanBatchSize = REDIS_SCAN_BATCH_SIZE_DEFAULT; |
|
26 |
|
|
27 |
} |