Closed adrys-lab closed 9 months ago
For advance uses you can use the block form of RedisCacheStore
: https://api.rubyonrails.org/classes/ActiveSupport/Cache/RedisCacheStore.html#method-c-new
Then for how to instantiate the cluster client it's all in the readme: https://github.com/redis/redis-rb?tab=readme-ov-file#cluster-support
After upgrading to
redis
5 in rails7.1.3
, we are facing some issues on trying to replicate same configuration to configure Rails Redis Cache Store we used to have with previousredis
4 version.This is what we used to have in our
production
initializer file: We faced 2 issues: 1-cluster
is not allowed anymore and suggests to useredis-clustering
gem, but we don't know how to innject it here for Rails Redis Cache Store. 2- it seemsreplica
is not allowed anymore so we wonder where this configuration to indicate Redis to use Replicas should be placed.can you help on replicating this same configuration into the new versions of redis + using the
redis-clustering
?On our tests we have done 2 tries without success: 1- replace
cluster
byurl
2- removereplica
config,but this turned out in dropping down our available MAX CONNECTIONS