Hello,
i want to activate the Redis Cache backend. But Redis Server using password.
I try below,
$config[‘cache_redis_server_password’] = ‘mypsswrd’;
$config[‘session_server_password’] = ‘mypsswrd’;
$config[‘lock_server_password’] = ‘mypsswrd’;
$config[‘redis_password’] = ‘mypsswrd’;
$config[‘server_password’] = ‘mypsswrd’;
can any one help me ?
Thanks
Hello!
I am afraid, current version of CS-Cart does not support password protected Redis servers. You can implement passing the password into the Redis::connect
method of the \Tygh\Backend\Cache\Redis class. Please, check the Redis documentation for the details:
We are also very confused why this isn’t implemented. I’ve created a feature request: Redis passwords
2 Likes
Hello,
can you show us the method here ?
Try add the password to the config.local.php file:
$config['cache_redis_server_password'] = 'password';
Then try to apply the changes from the attached .diff file
redis_password.diff (1.3 KB)
1 Like