Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to include the username in redis connection? #75

Open
Team1-epat opened this issue Mar 15, 2024 · 1 comment
Open

Is it possible to include the username in redis connection? #75

Team1-epat opened this issue Mar 15, 2024 · 1 comment

Comments

@Team1-epat
Copy link

Hi,

I wonder is it possible to provide the redis username when constructing the self.client inside the RedisClient class? In redis, i have disabled the default account due to some requirement from my end.

https://github.com/data-govt-nz/ckanext-security/blob/master/ckanext/security/cache/clients.py#L14

Thank you.

@markstuart
Copy link
Contributor

Hi, looks like the Redis module supports this: https://github.com/redis/redis-py/blob/96076084d35e424f563d532ebd91eae2294835b4/redis/client.py#L174

Feel free to raise a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants