Browse Source

Merge pull request #3640 from martinbean/patch-1

[5.2] Make Memcached options configurable.
Taylor Otwell 8 years ago
parent
commit
01e3d8f288
1 changed files with 3 additions and 1 deletions
  1. 3 1
      config/cache.php

+ 3 - 1
config/cache.php

@@ -51,7 +51,9 @@ return [
             'driver'  => 'memcached',
             'servers' => [
                 [
-                    'host' => '127.0.0.1', 'port' => 11211, 'weight' => 100,
+                    'host' => env('MEMCACHED_HOST', '127.0.0.1'),
+                    'port' => env('MEMCACHED_PORT', 11211),
+                    'weight' => 100,
                 ],
             ],
         ],