using JNPF.ConfigurableOptions; namespace JNPF.Common.Cache; /// /// 缓存配置. /// public class CacheOptions : IConfigurableOptions { /// /// 缓存类型. /// public CacheType CacheType { get; set; } /// /// Redis配置. /// public string RedisConnectionString { get; set; } /// /// 服务器地址. /// public string ip { get; set; } /// /// 端口. /// public int port { get; set; } /// /// 密码. /// public string password { get; set; } } public enum CacheType { /// /// 内存缓存. /// MemoryCache, /// /// Redis缓存. /// RedisCache }