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 #20

Closed
vcanson opened this issue Jan 10, 2016 · 4 comments
Closed

建议增加一个配置,直接把缓存改成redis #20

vcanson opened this issue Jan 10, 2016 · 4 comments

Comments

@vcanson
Copy link

vcanson commented Jan 10, 2016

建议laravel版本直接增加redis配置

直接修改配置就能跟laravel自带redis整合一起

@overtrue
Copy link
Owner

@vcan88 请问你指哪个版本?

@vcanson
Copy link
Author

vcanson commented Jan 10, 2016

laravel 5.1最新版本

@vcanson
Copy link
Author

vcanson commented Jan 10, 2016

config/database.php
'redis' => [
'cache' => [
'host' => 'IP地址',
'port' => 6379,
'database' => 10,
'password'=>'123123'
],
],
config/wechat.php
'cache' =>[
'cache' =>'redis',
'redis' => [
'driver' => 'redis',
'connection' => 'cache',
],
]

这样配置一下就可以使用redis,感觉这样会更好点,谢谢

@overtrue
Copy link
Owner

@vcanson overtrue/laravel-wechat 现已经适配 Laravel

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