$redis_server = array(
'host' => '/var/run/redis/redis.sock',
'database' => 0, // Optionally use a specific numeric Redis database. Default is 0.
Then everything works fine but wp redis cli fails like this:
wp redis cli
Warning: Using a password with '-a' or '-u' option on the command line interface may not be safe.
Could not connect to Redis at /var/run/redis/redis.sock:0: Name or service not known
not connected>
At the same time redis-cli -s /var/run/redis/redis.sock works fine.
When configured a Redis socket in
wp-config.php
:Then everything works fine but
wp redis cli
fails like this:At the same time
redis-cli -s /var/run/redis/redis.sock
works fine.Expected:
wp redis cli
works without problem.