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

Why not support Cache use default Redis Conn Configs #4668

Open
qingmo opened this issue Feb 24, 2025 · 0 comments
Open

Why not support Cache use default Redis Conn Configs #4668

qingmo opened this issue Feb 24, 2025 · 0 comments

Comments

@qingmo
Copy link

qingmo commented Feb 24, 2025

Why not support Cache use default Redis Conn Configs
current MysqlCache with redis implementation is const value
const ( defaultDatabase = 0 maxRetries = 3 idleConns = 8

https://github.com/zeromicro/go-zero/blob/eb11521655a491eaa099f3768f676825adab46cd/core/stores/redis/redisclientmanager.go#L12-L15

but max conn is very sensitive resource for redis server, does it support config in the future?
on my propose, just use RedisConfig Connection pool config is fine

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

1 participant