Magento 2 with Redis and varnish


#1

hello,

I was following Fayyaz Khattak article on installing Redis cache on magento 2, https://www.cloudways.com/blog/redis-cache-on-magento-2/

am getting this error on am trying to flush my magento 2 cache

PHP Parse error: syntax error, unexpected ‘‘cache’’ (T_CONSTANT_ENCAPSED_STRING), expecting ‘]’ in /public_html/app/etc/env.php on line 55

I put the code before the ];

please let me know what wrong am doing,

‘cache’ =>
array (
‘frontend’ =>
array (
‘default’ =>
array (
‘backend’ => ‘Cm_Cache_Backend_Redis’,
‘backend_options’ =>
array (
‘server’ => ‘127.0.0.1’,
‘port’ => ‘6379’,
‘persistent’ => ‘’,
‘database’ => ‘0’,
‘force_standalone’ => ‘0’,
‘connect_retries’ => ‘1’,
‘read_timeout’ => ‘10’,
‘automatic_cleaning_factor’ => ‘0’,
‘compress_data’ => ‘1’,
‘compress_tags’ => ‘1’,
‘compress_threshold’ => ‘20480’,
‘compression_lib’ => ‘gzip’,
),
),
‘page_cache’ =>
array (
‘backend’ => ‘Cm_Cache_Backend_Redis’,
‘backend_options’ =>
array (
‘server’ => ‘127.0.0.1’,
‘port’ => ‘6379’,
‘persistent’ => ‘’,
‘database’ => ‘1’,
‘force_standalone’ => ‘0’,
‘connect_retries’ => ‘1’,
‘read_timeout’ => ‘10’,
‘automatic_cleaning_factor’ => ‘0’,
‘compress_data’ => ‘0’,
‘compress_tags’ => ‘1’,
‘compress_threshold’ => ‘20480’,
‘compression_lib’ => ‘gzip’,
),
),
),
),

];