Skip to content

Instantly share code, notes, and snippets.

@mttjohnson
Created February 6, 2019 05:04
Show Gist options
  • Save mttjohnson/30084fbaea5fb3b176a01de833e16125 to your computer and use it in GitHub Desktop.
Save mttjohnson/30084fbaea5fb3b176a01de833e16125 to your computer and use it in GitHub Desktop.
Magento 2 Separation of Config Cache from default Object Cache Redis Storage
<?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