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 think the answer to this is no, but if I have multiple functions that are decoratored with cached and using the redis backend, will they share the same connection pool? ie if I have pool_max_size=N on each of the M decorators will there be up to M*N connections to my redis server? This is important as various PaaS providers (e.g. Heroku) limit the number of connections to the redis service.
The text was updated successfully, but these errors were encountered:
Hello, I could be wrong but as I understand - it's depends
If you using aliases with decorators - it should be one pool per alias. But if you pass redis connections parameters for each decorator you will have connection pool for each decorator
So I suggest you should use aliases
I think the answer to this is no, but if I have multiple functions that are decoratored with
cached
and using the redis backend, will they share the same connection pool? ie if I havepool_max_size=N
on each of theM
decorators will there be up toM*N
connections to my redis server? This is important as various PaaS providers (e.g. Heroku) limit the number of connections to the redis service.The text was updated successfully, but these errors were encountered: