open-duelyst/duelyst

[P3] Replace node-redis with ioredis

Ouverte

#80 ouverte le 2 oct. 2022

 (0 commentaire) (0 réaction) (0 personne assignée)JavaScript (526 forks)batch import
backendenhancementhelp wanted

Métriques du dépôt

Stars
 (3 443 étoiles)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

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

Guide contributeur