Skip to content

Commit

Permalink
Allow using a unix socket for redis
Browse files Browse the repository at this point in the history
  • Loading branch information
fredsted committed Feb 3, 2018
1 parent 4b6eb65 commit e94752c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config/cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@

'redis' => [
'driver' => 'redis',
'connection' => 'default',
'connection' => env('REDIS_CACHE_CONNECTION', 'default'),
],

],
Expand Down
5 changes: 5 additions & 0 deletions config/database.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,11 @@
'database' => 0,
],

'unix_socket' => [
'scheme' => 'unix',
'path' => env('REDIS_UNIX_SOCKET', '/var/run/redis/redis.sock')
]

],

];

0 comments on commit e94752c

Please sign in to comment.