Skip to content

need for Advanced Redis configurations #390

@Aswin1105

Description

@Aswin1105

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions