open-duelyst/duelyst

[P3] Replace node-redis with ioredis

Open

#80 aperta il 2 ott 2022

Vedi su GitHub
 (0 commenti) (0 reazioni) (0 assegnatari)JavaScript (526 fork)batch import
backendenhancementhelp wanted

Metriche repository

Star
 (3443 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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

Guida contributor