phpRedis migration to cluster and consistent hashing
问题 We are currently using PhpRedis extension and our code is written using the class Redis from the PhpRedis . But now we are migrating to a redis cluster. Is it possible to use the Class Redis to connect to redis cluster? or do we need to re-write our code and use the Class RedisArray? We ll need to have consistent hashing too. We have added keys like this {user}:1 so we can do consistent hashing later. main problem is taking all the code written using the class Redis and changing it to