using System.Configuration;
namespace Txgy.RBS.Framework.RedisHelper.Init
{
///
/// redis配置文件信息
/// 也可以放到配置文件去
///
public sealed class RedisConfigInfo
{
///
/// 可写的Redis链接地址
/// format:ip1,ip2
///
/// 默认6379端口
///
public string WriteServerList = "127.0.0.1:6379";
///
/// 可读的Redis链接地址
/// format:ip1,ip2
///
public string ReadServerList = "127.0.0.1:6379";
///
/// 最大写链接数
///
public int MaxWritePoolSize = 60;
///
/// 最大读链接数
///
public int MaxReadPoolSize = 60;
///
/// 本地缓存到期时间,单位:秒
///
public int LocalCacheTime = 180;
///
/// 自动重启
///
public bool AutoStart = true;
///
/// 是否记录日志,该设置仅用于排查redis运行时出现的问题,
/// 如redis工作正常,请关闭该项
///
public bool RecordeLog = false;
}
}