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 可以支持读写分离吗? #53

Open
ys-d opened this issue Jan 20, 2025 · 1 comment
Open

redis 可以支持读写分离吗? #53

ys-d opened this issue Jan 20, 2025 · 1 comment

Comments

@ys-d
Copy link

ys-d commented Jan 20, 2025

redis 可以支持读写分离吗? 读是一个地址,写是另外的地址,主从结构

@daoshenzzg
Copy link
Collaborator

redis client 支持的话那就支持,跟jetcache-go无关。例如:redis/go-redis 是支持配置读写分离的。

可以参考下:
https://github.com/redis/go-redis/blob/efe0f65bf0dde8b04d6a94c84f21a7b3cba56303/options.go#L149
https://github.com/redis/go-redis/blob/efe0f65bf0dde8b04d6a94c84f21a7b3cba56303/osscluster.go#L48

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