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的问题请教 #117

Open
gmplato opened this issue Sep 14, 2020 · 3 comments
Open

redis的问题请教 #117

gmplato opened this issue Sep 14, 2020 · 3 comments

Comments

@gmplato
Copy link

gmplato commented Sep 14, 2020

老师你好,我现在composer了Predis类库,我发现dns_dev.php原来有两条注释为:
// 'client' => 'predis', // predis
// 'persistent' => true, // predis

请问这两条原来的设想是什样的?应该是一个什样的正确用法。

@gmplato
Copy link
Author

gmplato commented Sep 14, 2020

还有我用predis操作redis需要注意些什么细节?

@billge1205
Copy link
Collaborator

这是之前网友提交的pr 后面觉得Biny还是尽可能保持原生和干净就去掉了
基本思路就是如果获取到这个配置 默认的App::$base->redis 会实例化predis对象 其他区别不大
你也可以在Biny上根据自己业务场景进行二次开发 方便自己使用

@gmplato
Copy link
Author

gmplato commented Sep 14, 2020

好的,多谢老师的解答,我先尝试一下。

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