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

Redis Sentinel Support (HA) #26

Open
schmitch opened this issue Dec 6, 2018 · 0 comments
Open

Redis Sentinel Support (HA) #26

schmitch opened this issue Dec 6, 2018 · 0 comments

Comments

@schmitch
Copy link

schmitch commented Dec 6, 2018

Actually it would be good, if the cache/session implementation would support redis sentinel.

I guess supporting it is extremly simple. it actually just needs a configuration.
basically the redis client already supports it: https://godoc.org/gopkg.in/redis.v2#example-NewFailoverClient

this will actually try to query the master and is more useful than just redis by itself

TLDR: also provide a way to use NewFailoverClient, which means that clients will "search" the master via sentinel

Cache Issue: go-macaron/cache#11

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

No branches or pull requests

2 participants