| | |
| | | |
| | | public string KeyPrefix { get; set; } = "wcs:"; |
| | | |
| | | /// <summary> |
| | | /// 是否启用L1内存缓存层。禁用后只使用Redis,适用于需要外部修改Redis数据的场景 |
| | | /// </summary> |
| | | public bool EnableL1Cache { get; set; } = true; |
| | | |
| | | /// <summary> |
| | | /// 是否启用Redis到内存缓存的自动同步 |
| | | /// </summary> |
| | | public bool EnableAutoSync { get; set; } = true; |
| | | |
| | | /// <summary> |
| | | /// 自动同步间隔时间(秒),默认30秒 |
| | | /// </summary> |
| | | public int SyncIntervalSeconds { get; set; } = 30; |
| | | |
| | | /// <summary> |
| | | /// 同步时单次批量获取的Redis key数量上限,防止一次扫描过多key |
| | | /// </summary> |
| | | public int SyncBatchSize { get; set; } = 1000; |
| | | |
| | | public MonitoringOptions Monitoring { get; set; } = new(); |
| | | |
| | | public EvictionOptions Eviction { get; set; } = new(); |