经过身份验证的 ServiceStack.Redis.PooledRedisClientsManager
实例化 PooledRedisClientManager
时,如何指定 Redis 主机名的用户名和密码?
var _redis = PooledRedisClientManager("my.redishost.com:1234");
我特别需要将基于 .NET 的 ServiceStack.Redis 应用程序部署到 AppHarbor,并且我使用 Redis To Go 进行 Redis 托管。
How do I specify a username and password for the Redis hostname when instantiating a PooledRedisClientManager
?
var _redis = PooledRedisClientManager("my.redishost.com:1234");
I specifically need to deploy a .NET-based ServiceStack.Redis application to AppHarbor and I'm using Redis To Go for Redis hosting.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
https://github.com/ServiceStack/ServiceStack.Redis/wiki/Authentication
使用 Redis 进行身份验证密码,只需使用password@host语法传递到连接字符串:
https://github.com/ServiceStack/ServiceStack.Redis/wiki/Authentication
To authenticate with Redis using a password, simply pass in to the connection string using password@host syntax: