open-duelyst/duelyst

[P3] Replace node-redis with ioredis

Offen

#80 geöffnet am 02.10.2022

 (0 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)JavaScript (526 Forks)batch import
backendenhancementhelp wanted

Repository-Metriken

Stars
 (3.443 Sterne)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

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

Contributor Guide