-
Notifications
You must be signed in to change notification settings - Fork 201
Description
Hi,
I encountered an issue while working with Django Channels. I was required to use the same Redis configuration throughout the Django project. The Django cache framework allows for a more detailed configuration, including parameters like CONNECTION_POOL_CLASS and SOCKET_CONNECT_TIMEOUT.
Firstly, I couldn't find proper documentation or mention in the README indicating that these parameters can be passed in the host as a dictionary. Upon inspecting the channel_redis code, I found that the decode_host function (located in channel_redis.utils at line 48) does parse these parameters and passes them to the asyncio Redis connection. Even then i am not sure, what all we could pass in the host, can we include these in doc??
Secondly, is there any way to follow the same settings format for the cache backend in Django here? Or can we use the same cache settings by default in this package, considering it is specific to Django?
Thank you.
Also, as this is my first time raising a issue, Please let me know any improvements i need to do