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

Add sentinel backend #117

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

julienCozo
Copy link

Add a backend to use sentinel redis cluster

@cameronmaske
Copy link
Owner

@julienCozo Thanks for the contribution.

Before this can get released, can you add some tests?
Here are some relevant examples that unit test and an integration test (if possible, I can't see a similar library that fakes a sentinel cluster like fakeredis, so this maybe tricker).


def __init__(self, settings):
"""
settings are like
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we clean up this docstring slightly or just remove it?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

.idea/.gitignore Outdated
Comment on lines 1 to 2
# Default ignored files
/workspace.xml
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think .idea directory belongs here.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

right, sorry

@julienCozo
Copy link
Author

@julienCozo Thanks for the contribution.

Before this can get released, can you add some tests?
Here are some relevant examples that unit test and an integration test (if possible, I can't see a similar library that fakes a sentinel cluster like fakeredis, so this maybe tricker).

Sentinel just return a StrictRedis instance, so tests are quite the sames. I don't have time for now but maybe later.

@DoctorKatz
Copy link

Hi, how soon will be merged this pull request?

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

Successfully merging this pull request may close these issues.

5 participants