We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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配置是由远程下发给业务服务器 已经尝试在app.beforeStart()中去远程拉取数据库(或其他)配置,然后修改对应app.config.redis.client.db的值
app.beforeStart()
app.config.redis.client.db
但是redis实例化要早于app.beforeStart执行,因此不能动态修改 请问有办法实现或计划支持吗?
app.beforeStart
The text was updated successfully, but these errors were encountered:
我觉得我Singleton 可以加个动态获取配置的参数
Sorry, something went wrong.
现在支持动态创建: https://eggjs.org/zh-cn/advanced/plugin.html#%E5%8A%A8%E6%80%81%E5%88%9B%E5%BB%BA%E5%AE%9E%E4%BE%8B
#2382
No branches or pull requests
我的场景是redis配置是由远程下发给业务服务器
已经尝试在
app.beforeStart()
中去远程拉取数据库(或其他)配置,然后修改对应app.config.redis.client.db
的值但是redis实例化要早于
app.beforeStart
执行,因此不能动态修改请问有办法实现或计划支持吗?
The text was updated successfully, but these errors were encountered: