-
-
Notifications
You must be signed in to change notification settings - Fork 808
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to access redis with password? #338
Comments
AFAIK you may be able to do this:
|
@robjtede Thank you for your reply. I use Actix redis. No matter how much I try, I can't access redis with a password. |
Hmm can u test redis-cli ping and check if u receive pong? and try this redis-cli -h 127.0.0.1 -p 6379 -a 'password' and make sure ur password don't have some weirdness. |
I can connect using the redis 0.16 package, but I can't connect with actix-redis no matter how it is set. Does actix-redis not support redis connection with password? |
Send 'AUTH' command to redis server after connect let redis = actix_redis::RedisActor::start("redis://localhost:6379");
// or redis.send(...).await
redis.do_send(actix_redis::Command(resp_array![
"AUTH",
"password"
])); actix-redis use redis-async crate internal |
I also want to know |
I hope to provide a more convenient way to manage the settings of password keys like SpringBoot to configure them in the .env file. |
i expect actix/actix-extras#212 will help with this with the new redis-rs based session backend |
How to access redis with password?
The text was updated successfully, but these errors were encountered: