I'm trying to do a PHP Redis connection. I explored the phpredis and the predis packages and didn't find a way to include the username and password URL connection string.
This is because I receive a environment variable of the redis connection string in this format: tls://{username}:{password}@{host}:{port}
I can change the order/format of the url string on the environment variable. How do I know the final format of the connection string used on phpredis ou predis? How can I indicate the username / password on the redis URL string, for the predis or phpredis?
I'm not restricted to predis or phpredis. I can use another if you have any suggestion.