Open dpgaspar opened 1 year ago
Seconding this request. Similarly I am trying to pass in ssl_cert_reqs
as a CACHE_OPTION
and can see that it is not being passed to redis.
"CACHE_OPTIONS": {
"ssl": True,
"ssl_cert_reqs": "none",
},
@dpgaspar To confirm, adding the kwargs as query parameters to your CACHE_REDIS_URL
is a workaround that fixed the problem for you?
@dpgaspar @JonathanBrenner can you verify that #591 fixes this issue?
@foarsitter I no longer have access to the code base with this issue since I changed jobs. Thanks for working on a fix! Hopefully @dpgaspar can verify
Follow up for: https://github.com/pallets-eco/flask-caching/issues/285
If not mistaken the fixed mentioned on the above issue is for Redis sentinel only
Setting the following config:
it works if we set: 'CACHE_REDIS_URL': "redis://cache1.us1a.zone:6379/0?socket_timeout=1&socket_connect_timeout=2",
on: https://github.com/pallets-eco/flask-caching/blob/master/src/flask_caching/backends/rediscache.py#L86
if we change:
to:
works! Not a great solution but we can't pass unknown kwargs, we have to be explicit, this will increase flask-caching dependency with redis-py versions
Happy to open a PR
Environment: