Lumen Add Redis Support

composer require predis/predis
composer require illuminate/redis

在目录bootstrap/app.php中要引入redis的扩展
$app->register(Illuminate\Redis\RedisServiceProvider::class);

启用redis辅助函数
$app->withFacades();
$app->withEloquent();

$app->configure('database');

配置env服务器参数
REDIS_HOST=127.0.0.1
REDIS_PORT=6379
REDIS_PASSWORD=