We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 54e3122 commit 38d822eCopy full SHA for 38d822e
2 files changed
.env.example
@@ -12,6 +12,9 @@ DB_PASSWORD=database_user_password
12
# Cache and session
13
CACHE_DRIVER=file
14
SESSION_DRIVER=file
15
+# If using Memcached, comment the above and uncomment these
16
+#CACHE_DRIVER=memcached
17
+#SESSION_DRIVER=memcached
18
QUEUE_DRIVER=sync
19
20
# Storage
@@ -54,3 +57,8 @@ MAIL_PORT=1025
54
57
MAIL_USERNAME=null
55
58
MAIL_PASSWORD=null
56
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
config/cache.php
@@ -51,7 +51,9 @@
51
'driver' => 'memcached',
52
'servers' => [
53
[
- 'host' => '127.0.0.1', 'port' => 11211, 'weight' => 100,
+ 'host' => env('MEMCACHED_HOST', '127.0.0.1'),
+ 'port' => env('MEMCACHED_PORT', 11211),
+ 'weight' => 100,
],
0 commit comments