using Microsoft.Extensions.Options;
using System;
using System.Collections.Generic;
using System.Text;

namespace Fuel.Infrastructure.Extension
{
    public class RedisOptions 
    {
        public RedisOptions Value =>this;

        /// <summary>
        /// url 地址
        /// </summary>
        public string ConnectionString { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        public string Password { get; set; }

        /// <summary>
        /// 数据库编号
        /// </summary>
        public int DataBase { get; set; }

        /// <summary>
        /// 链接名称
        /// </summary>
        public string KeyName { get; set; }

        /// <summary>
        /// 缓存key 的前缀
        /// </summary>
        public string PrefixKey { get; set; }

        public int Default { get; set; }

        /// <summary>
        /// 哨兵地址
        /// </summary>
        public string[] Sentinels { get; set; }


    }
}
