Created
October 15, 2018 10:40
-
-
Save ruthgeridema/f0c6ef1473e25272c5419f54d942840a to your computer and use it in GitHub Desktop.
Add Redis to Magento 2 | Local development with the Hypernode Docker container (Linux)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
'cache' => [ | |
'frontend' => [ | |
'default' => [ | |
'backend' => 'Cm_Cache_Backend_Redis', | |
'backend_options' => [ | |
'server' => '127.0.0.1', | |
'database' => 0, | |
'port' => '6379' | |
] | |
], | |
'page_cache' => [ | |
'backend' => 'Cm_Cache_Backend_Redis', | |
'backend_options' => [ | |
'server' => '127.0.0.1', | |
'port' => '6379', | |
'database' => '1', | |
'compress_data' => '1' | |
] | |
] | |
] | |
], | |
'session' => [ | |
'save' => 'redis', | |
'redis' => [ | |
'host' => 'redismaster', | |
'port' => '6379', | |
'password' => '', | |
'timeout' => '2.5', | |
'persistent_identifier' => '', | |
'database' => '2', | |
'compression_threshold' => '2048', | |
'compression_library' => 'gzip', | |
'log_level' => '1', | |
'max_concurrency' => '6', | |
'break_after_frontend' => '5', | |
'break_after_adminhtml' => '30', | |
'first_lifetime' => '600', | |
'bot_first_lifetime' => '60', | |
'bot_lifetime' => '7200', | |
'disable_locking' => '0', | |
'min_lifetime' => '60', | |
'max_lifetime' => '604800' | |
] | |
], | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment