go-zero icon indicating copy to clipboard operation
go-zero copied to clipboard

redis pool是否应该支持可配置?

Open lwhcv opened this issue 6 years ago • 5 comments

目前看了下core/store/redis里面redis连接的代码,redis pool参数都是默认的,满足不了所有公司的需求,比如redis的最大连接数、redis的最大空闲数以及超时时间等,这样会更灵活一些?

lwhcv avatar Oct 26 '20 06:10 lwhcv

有实际场景再reopen哈

kevwan avatar Oct 26 '20 06:10 kevwan

这种场景应该很常见,不知道能否支持一下。对于第三方开源库的封装,如果配置项不完全暴露出来,那开源库的能力将会大打折扣

pabno avatar Dec 22 '22 07:12 pabno

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


This kind of scene should be very common, I don't know if it can be supported. For the packaging of third-party open source libraries, if the configuration items are not fully exposed, the capabilities of the open source library will be greatly reduced

Issues-translate-bot avatar Dec 22 '22 07:12 Issues-translate-bot

这种场景应该很常见,不知道能否支持一下。对于第三方开源库的封装,如果配置项不完全暴露出来,那开源库的能力将会大打折扣

@kevwan

pabno avatar Dec 22 '22 07:12 pabno

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


This kind of scene should be very common, I don't know if it can be supported. For the packaging of third-party open source libraries, if the configuration items are not fully exposed, the capabilities of the open source library will be greatly reduced

@kevwan

Issues-translate-bot avatar Dec 22 '22 07:12 Issues-translate-bot