redislabs-rejson icon indicating copy to clipboard operation
redislabs-rejson copied to clipboard

RedisJson::createWithPhpRedis() must be an instance of Redis, instance of RedisCluster given

Open ZhangTianyi-1998 opened this issue 1 year ago • 1 comments

我们的redis是集群 代码用的是RedisCluster类 有什么办法可以适配么

Our Redis is a cluster The code uses the RedisCluster class Is there any way to adapt

ZhangTianyi-1998 avatar Dec 06 '23 04:12 ZhangTianyi-1998

I believe latest version must be support that:

https://github.com/mkorkmaz/redislabs-common/blob/master/src/RedisClient/Redis.php#L13

But this library not fully tested against a redis cluster. It is highly possible you'll see "MOVED" responses since on the systems like AWS Elasticache Redis Cluster. But it is in short term plans list to resolve issues like that.

mkorkmaz avatar Dec 06 '23 14:12 mkorkmaz