Skip to content

Instantly share code, notes, and snippets.

@mklooss
Last active October 16, 2018 06:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mklooss/072c25475849d53728ef0a4a2c5c8df2 to your computer and use it in GitHub Desktop.
Save mklooss/072c25475849d53728ef0a4a2c5c8df2 to your computer and use it in GitHub Desktop.
Shopware REDIS
<?php return array (
'db' => [
'host' => '127.0.0.1',
'port' => '3306',
'username' => 'xxxxxxx',
'password' => 'xxxxxxx',
'dbname' => 'xxxxxxx',
],
'model' => [
'redisHost' => '127.0.0.1',
'redisPort' => 6379,
'redisDbIndex' => 1,
'cacheProvider' => 'redis'
],
'cache' => [
'backend' => 'redis',
'backendOptions' => [
'servers' => [
[
'host' => '127.0.0.1',
'port' => 6379,
'dbindex' => 2,
'redisAuth' => ''
],
],
],
],
'session' => array(
'save_handler' => 'redis',
'save_path' => "tcp://127.0.0.1:6379?database=6",
),
'backendsession' => array(
'save_handler' => 'redis',
'save_path' => "tcp://127.0.0.1:6379?database=6",
),
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment