socketry / async-redis

MIT License
83 stars 18 forks source link

SSL/TLS Support? #32

Closed machty closed 3 years ago

machty commented 3 years ago

Is it possible to pass in the ssl_params described here to the async-redis client?

machty commented 3 years ago

More specifically, I'm trying to get async-redis to talk to a new Heroku Redis v6 instance which is hosted on a rediss:// URL, so I'm curious what our options are.

ioquatix commented 3 years ago

Yes, just use Async::IO::Endpoint.ssl('localhost', port, ssl_context: ...).

machty commented 3 years ago

Thank you, that worked!

ioquatix commented 3 years ago

If you have time can you make a PR for the documentation?

machty commented 3 years ago

@ioquatix #33