Skip to content

Use Existing Connection Pool #526

Open
@ZuSe

Description

@ZuSe

Hi guys,

i wanted to ask if there is the option to use an existing connection pool?
I have redis-py already in place for huey and would love to pass in my SentinelConnectionPool to django-redis as well.
So I need to define it once and can share it across all redis dependend clients.

e.g. this is how it looks for huey


 'connection': {
        'connection_pool': SentinelConnectionPool(service_name="mymaster",
                                         sentinel_manager=sentinel.Sentinel([("localhost",26379)],
                                                                            password="XXXXXXX",
                                                                            socket_timeout=10,
                                                                            sentinel_kwargs={"password": "XXXXX"})
                                         ),
    },

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions