sleeprite / rudis

Rudis is a high-performance in memory database
https://sleeprite.github.io/rudis/
GNU General Public License v3.0
239 stars 28 forks source link

redis-rs 高版本无法连接 #7

Closed DeadPoetSpoon closed 2 months ago

DeadPoetSpoon commented 2 months ago

我在我的工程中试图使用 redis-rs 0.24.0 连接 rudis 但一直阻塞在 redis::client::Client::get_connection

问题发生在 redis-rs0.23.4 版本后,在完成连接后调用了 CLIENT SETINFO 命令(src/connection.rs#L956),rudis 目前不支持该命令并返回 PONG ,或许 redis-rs 无法正确获取命令结果以至于阻塞。

参照源码,我在 Cargo.toml 中修改 redis-rs 依赖解决,features 需包含 disable-client-setinfo ,其他为默认 features

redis = {version= "0.26.0",default-features = false,features=["acl","geospatial","script","streams","keep-alive","disable-client-setinfo"]}

或许目前 CLIENT SETINFO 命令直接返回 OK 什么也不做?

sleeprite commented 2 months ago

存在解决方案,暂时不处置