Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Authenticated ServiceStack.Redis.PooledRedisClientsManager

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.

like image 391
Petrus Theron Avatar asked Jan 14 '12 13:01

Petrus Theron


1 Answers

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:

container.Register(c => new PooledRedisClientManager("password@host:6379"));
like image 136
DanB Avatar answered Oct 02 '22 07:10

DanB