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,是否需要修改一行代码 #301

Open
flowersfallen opened this issue Jul 24, 2019 · 2 comments
Open

缓存设置为redis,是否需要修改一行代码 #301

flowersfallen opened this issue Jul 24, 2019 · 2 comments

Comments

@flowersfallen
Copy link

缓存设置为redis后,除了在配置文件的cache同级下加一段database配置,如下,

'database' => [ 'redis' => [ 'default' => [ 'host' => 'localhost', 'port' => 6379, 'database' => 1, ], ], ],

是否需要在实例化RedisManager那里多传一个参,不然会报缺少参数的错误提示,
image

@jackwangshukai
Copy link

我也遇到这个问题了你解决了吗

@zhangfei28
Copy link

RedisManager 第一个参数NULL 但是 还是报错呢

vbot.ERROR: Init failed.{"Ret":1101,"ErrMsg":""} [] []

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

3 participants