open-duelyst/duelyst

[P3] Replace node-redis with ioredis

開放

#80 建立於 2022年10月2日

 (0 則留言) (0 個反應) (0 位負責人)JavaScript (526 個分叉)batch import
backendenhancementhelp wanted

倉庫指標

星標
 (3,443 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

We're currently using node-redis@2.8.0, which has poor support for connection timeouts.

Replacing this with ioredis@5.2.3 fixes the above, but requires some changes. For example, the zrevrankAsync function does not exist, so we need to use zrevrank instead and remove the .then(result) chain.

Alternatively, upgrading node-redis may help with these issues.

See https://github.com/luin/ioredis/wiki/Migrating-from-node_redis

貢獻者指南