Redis带密码访问校验
用的ServiceStack.Redis组件
return new PooledRedisClientManager(readWriteHosts, readOnlyHosts, new RedisClientManagerConfig { MaxWritePoolSize = 50, // “写”链接池链接数 MaxReadPoolSize = 50, // “读”链接池链接数 AutoStart = true, });
using (IRedisClient client = _prcm.GetClient())
{
return client.Info;
}
获取Redis得Info信息时报错。,
redis加密码后只需要在地址前面加上,"密码@Redis地址"即可。