Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Зуев Егор
/
wiki.dev
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Authored by
Nick Walke
2016-03-02 20:44:00 -0600
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Commit
38d822e04c669d1929760983d829e9218aad38ed
38d822e0
1 parent
54e31225
Closes #69. Implemented and tested memcached.
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletions
.env.example
config/cache.php
.env.example
View file @
38d822e
...
...
@@ -12,6 +12,9 @@ DB_PASSWORD=database_user_password
# Cache and session
CACHE_DRIVER=file
SESSION_DRIVER=file
# If using Memcached, comment the above and uncomment these
#CACHE_DRIVER=memcached
#SESSION_DRIVER=memcached
QUEUE_DRIVER=sync
# Storage
...
...
@@ -54,3 +57,8 @@ MAIL_PORT=1025
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
# Memcached settings
#MEMCACHED_HOST=127.0.0.1
# If using a UNIX socket path for the host, set the port to 0
#MEMCACHED_PORT=11211
\ No newline at end of file
...
...
config/cache.php
View file @
38d822e
...
...
@@ -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
,
],
],
],
...
...
Please
register
or
sign in
to post a comment