[servicestack.redis] IRedisClientsManager should have password field?

123 views
Skip to first unread message

Heriyanto Binduni

unread,
Feb 9, 2012, 10:41:10 PM2/9/12
to servic...@googlegroups.com
hi, if you look at my code below, it seem IRedisClientsManager should have password properties?

var manager = new PooledRedisClientManager(redisHost);   
manager.FlushAll(); //--> doesn't work, need to supply password first
   
    using (IRedisClient redisClient = manager.GetClient())
    {   
        redisClient.Password = redisPasswd;       
        redisClient.FlushAll();       // ---> work good since we supply password
    }

Demis Bellot

unread,
Feb 9, 2012, 11:35:20 PM2/9/12
to servic...@googlegroups.com
In a recent build of Redis Dan added support for specifying a password in the hostName:
This lets you now specify a password with:

var redisHost = "password@host:port";

Cheers,
--
- Demis


Heriyanto Binduni

unread,
Feb 12, 2012, 8:15:53 PM2/12/12
to servic...@googlegroups.com
tq demis, this is great ^_^
Reply all
Reply to author
Forward
0 new messages