open-smf / connection-pool

A common connection pool based on Swoole is usually used as a database connection pool.
MIT License
222 stars 34 forks source link

How can I connect to a redis Cluster #20

Open henrywood opened 9 months ago

henrywood commented 9 months ago

Hi !

Can somebody show me how to make a Connection Pool implementation that connects to PhpRedis Cluster ? Let's say I have these Redis Cluster nodes:

192.168.10.11, 192.168.10.12 and 192.168.10.13. 192.168.10.11 is the master

I am using Swoole 5.0.1

Do I need to call \Swoole::enableCoroutine(); ?

Thanks !