浏览代码

Update cache.php, add more detailed redis config

Closes #19
Daniel Supernault 7 年之前
父节点
当前提交
da94721d62
共有 1 个文件被更改,包括 10 次插入2 次删除
  1. 10 2
      config/cache.php

+ 10 - 2
config/cache.php

@@ -69,8 +69,16 @@ return [
         ],
 
         'redis' => [
-            'driver' => 'redis',
-            'connection' => 'default',
+
+            'client' => 'predis',
+
+            'default' => [
+                'host' => env('REDIS_HOST', 'localhost'),
+                'password' => env('REDIS_PASSWORD', null),
+                'port' => env('REDIS_PORT', 6379),
+                'database' => env('REDIS_DATABASE', 0),
+            ],
+
         ],
 
     ],