You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure if there are other cases where the USERNAME should be passed to the Sentinel or Redis objects. Maybe in the ConnectionFactory's get_connection_pool() method?
I can start a merge request with that.
The text was updated successfully, but these errors were encountered:
Problem Statement
The username defined in the cache options is not passed to the connection kwargs.
I'm connecting to a Sentinel cluster with the following cache parameters:
So the
SentinelConnectionFactory
is used.The
SENTINEL_KWARGS
are passed to theSentinel
objects, but theUSERNAME
is not passed to theconnection_kwargs
param.Describe the solution you'd like
The
make_connection_params()
method should get theUSERNAME
from theoptions
.I'm not sure if there are other cases where the
USERNAME
should be passed to theSentinel
orRedis
objects. Maybe in theConnectionFactory
'sget_connection_pool()
method?I can start a merge request with that.
The text was updated successfully, but these errors were encountered: