Showing
2 changed files
with
11 additions
and
1 deletions
| ... | @@ -12,6 +12,9 @@ DB_PASSWORD=database_user_password | ... | @@ -12,6 +12,9 @@ DB_PASSWORD=database_user_password |
| 12 | # Cache and session | 12 | # Cache and session |
| 13 | CACHE_DRIVER=file | 13 | CACHE_DRIVER=file |
| 14 | SESSION_DRIVER=file | 14 | SESSION_DRIVER=file |
| 15 | +# If using Memcached, comment the above and uncomment these | ||
| 16 | +#CACHE_DRIVER=memcached | ||
| 17 | +#SESSION_DRIVER=memcached | ||
| 15 | QUEUE_DRIVER=sync | 18 | QUEUE_DRIVER=sync |
| 16 | 19 | ||
| 17 | # Storage | 20 | # Storage |
| ... | @@ -54,3 +57,8 @@ MAIL_PORT=1025 | ... | @@ -54,3 +57,8 @@ MAIL_PORT=1025 |
| 54 | MAIL_USERNAME=null | 57 | MAIL_USERNAME=null |
| 55 | MAIL_PASSWORD=null | 58 | MAIL_PASSWORD=null |
| 56 | MAIL_ENCRYPTION=null | 59 | MAIL_ENCRYPTION=null |
| 60 | + | ||
| 61 | +# Memcached settings | ||
| 62 | +#MEMCACHED_HOST=127.0.0.1 | ||
| 63 | +# If using a UNIX socket path for the host, set the port to 0 | ||
| 64 | +#MEMCACHED_PORT=11211 | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
| ... | @@ -51,7 +51,9 @@ return [ | ... | @@ -51,7 +51,9 @@ return [ |
| 51 | 'driver' => 'memcached', | 51 | 'driver' => 'memcached', |
| 52 | 'servers' => [ | 52 | 'servers' => [ |
| 53 | [ | 53 | [ |
| 54 | - 'host' => '127.0.0.1', 'port' => 11211, 'weight' => 100, | 54 | + 'host' => env('MEMCACHED_HOST', '127.0.0.1'), |
| 55 | + 'port' => env('MEMCACHED_PORT', 11211), | ||
| 56 | + 'weight' => 100, | ||
| 55 | ], | 57 | ], |
| 56 | ], | 58 | ], |
| 57 | ], | 59 | ], | ... | ... |
-
Please register or sign in to post a comment