joyieldInc / predixy

A high performance and fully featured proxy for redis, support redis sentinel and redis cluster
BSD 3-Clause "New" or "Revised" License
1.47k stars 347 forks source link

想了解下predixy是否可以使用jedis连接 #113

Open kokumakooli opened 4 years ago

kokumakooli commented 4 years ago

您好 我在近期使用redis的时候看到了您写的这个代理,想拿来在springboot中使用,在部署完redis cluster,predixy(redis版本:5.0.8 predisxy版本 1.0.5),并测试之后准备用jedis连接,但是启动之后java这边日志报错 提示:Invocation of init method failed: nexted exception is org.springframework.dao.InvalidDataAccessApiUsageException: ERR argument wrong; nested exception is redis.clients.jedis.exceptions.JedisDataException: ERR argument wrong 目前还未找到出错原因,想麻烦您帮忙分析下可能是哪里出的问题,十分感谢

  补充一下:除了jedis,predixy是否可以使用java里其他的客户端进行连接,谢谢
caojiajun commented 3 years ago

作为一个proxy,肯定是可以使用任意语言的redis客户端去连接的,你可以检查一下predixy的配置。 此外,如果感兴趣使用java实现的redis proxy,你可以看看这里: https://github.com/netease-im/camellia/blob/master/docs/redis-proxy/redis-proxy-zh.md