lumen 使用 redis缓存
建议修改composer.json
require 节点如下:
"require": {
"php": ">=5.5.9",
"laravel/lumen-framework": "5.1.*",
"vlucas/phpdotenv": "~1.0",
"predis/predis": "1.0.3",
"illuminate/redis" : "5.1.*"
},
执行 composer install
redis 默认配置文件地址:
\vendor\laravel\lumen-framework\config\database.php redis 节点 修改IP地址密码