Created
February 6, 2019 05:04
-
-
Save mttjohnson/30084fbaea5fb3b176a01de833e16125 to your computer and use it in GitHub Desktop.
Magento 2 Separation of Config Cache from default Object Cache Redis Storage
This file contains hidden or 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
| <?php | |
| # You can store a specific cache type separately from the default object cache storage | |
| return [ | |
| 'cache' => [ | |
| 'frontend' => [ | |
| 'default' => [ | |
| 'backend' => 'Cm_Cache_Backend_Redis', | |
| 'backend_options' => [ | |
| 'server' => '127.0.0.1', | |
| 'database' => '0', | |
| 'port' => '6379', | |
| 'password' => '' | |
| ] | |
| ], | |
| 'objconfig' => [ | |
| 'backend' => 'Cm_Cache_Backend_Redis', | |
| 'backend_options' => [ | |
| 'server' => '127.0.0.1', | |
| 'database' => '0', | |
| 'port' => '6383', | |
| 'password' => '' | |
| ] | |
| ] | |
| ], | |
| 'type' => [ | |
| 'config' => [ | |
| 'frontend' => 'objconfig' | |
| ] | |
| ] | |
| ], | |
| ]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment