sorentwo / readthis

:newspaper: Pooled active support compliant caching with redis
MIT License
504 stars 40 forks source link

Is there any support for distributed client for redis? #63

Closed OPhamster closed 6 years ago

OPhamster commented 6 years ago

Couldn't find the code for distributed client for redis. Does readthis support reads and writes to a distributed redis cluster?

sorentwo commented 6 years ago

Readthis doesn't have built in support for Redis Cluster. There isn't an official ruby library for cluster, so the usual workaround is a custom redis cluster proxy.

Readthis relies on MULTI calls in a lot of places, but MULTI falls apart when reading data from a cluster. Other libraries have a switch to choose PIPELINE over MULTI in this situation, but we don't have support for that currently.