using MoYu.ConfigurableOptions; namespace SafeCampus.Cache; /// /// 缓存设置 /// public class CacheSettingsOptions : IConfigurableOptions { /// /// 使用Redis /// public bool UseRedis { get; set; } /// /// Redis设置 /// public RedisSettings RedisSettings { get; set; } } /// /// Redis设置 /// public class RedisSettings { /// /// 连接地址 /// public string Address { get; set; } /// /// 密码 /// public string Password { get; set; } /// /// 数据库 /// public int Db { get; set; } = 0; /// /// 是否每次启动都清空 /// public bool ClearRedis { get; set; } = false; }