wp-redis
wp-redis copied to clipboard
[BUGS-5944] Command "wp redis cli" fails
When configured a Redis socket in wp-config.php
:
$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.
Expected: wp redis cli
works without problem.
Thanks for the report! We're tracking this internally as BUGS-5944.