I am using the redis client for cyclone.
It's great the you can connect to a server with out a password but how can I connect to redis with a password? How do I modify the below code to authenticate?
t = cyclone.redis.lazyConnectionPool(host,port,db)
@cyclone.web.asynchronous
def on_finish(self):
t = yield tt.multi()
yield t.set('key', 'value')
r = yield t.commit()
print "commit=", repr(r)
Thanks
the cyclone redis client has an
auth
method that you can send a password to, having set that password inredis.conf
But be very careful before using redis auth. it's not really considered secure (by design) and should mostly be used just to protect instances against configuration errors causing a client to connect to the wrong database, not as a security method.
from the redis config doc: