$servers = ['tls://master.my-test-redis.8juowe.euw2.cache.amazonaws.com:6379']; // your endpoint
$options = ['parameters' => ['password' => $password ]]; // put your password here
$redis = new Predis\Client($servers, $options ); // Instance your client
2条答案
按热度按时间7hiiyaii1#
解决方案-不需要证书,只需在客户端启用TLS(例如,ioredis只需具有
tls: {}
yi0zb3m42#
下面是我使用Predis的工作演示代码。
字符串