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
It is unintuitive that the password is ignored even though it is defined in the config. If this is intended, the documentation should reflect that the URL always takes precedence and parameters that are defined by the URL are ignored (such as host, port, db and password).
Maybe the individual parameters should be dropped entirely in favor of using the URL as the only way to make a connection to avoid confusion, or a warning should be thrown when both parameters are used at the same time.
Environment:
Python version: 3.9
Flask-Caching version: 2.3.0
The text was updated successfully, but these errors were encountered:
When defining a password and URL in the config, only the URL will be used
The following config will not work as expected, no password will be used.
config = {
'CACHE_TYPE': 'RedisCache',
'CACHE_REDIS_URL': 'redis://localhost:6379/0',
'CACHE_REDIS_PASSWORD': 'test'
}
It is unintuitive that the password is ignored even though it is defined in the config. If this is intended, the documentation should reflect that the URL always takes precedence and parameters that are defined by the URL are ignored (such as host, port, db and password).
Maybe the individual parameters should be dropped entirely in favor of using the URL as the only way to make a connection to avoid confusion, or a warning should be thrown when both parameters are used at the same time.
Environment:
The text was updated successfully, but these errors were encountered: