stimulusreflex / stimulus_reflex

Build reactive applications with the Rails tooling you already know and love.
https://docs.stimulusreflex.com
MIT License
2.29k stars 174 forks source link

docs recommend hiredis gem along with incompatible redis version #710

Open robinboening opened 5 months ago

robinboening commented 5 months ago

The current docs at https://docs.stimulusreflex.com/appendices/deployment.html#use-redis-as-your-cache-store recommend installing redis >= 4.0.

gem "redis", ">= 4.0", require: ["redis", "redis/connection/hiredis"]
gem "hiredis"

This allows redis 5.x which doesn't include redis/connection/hiredis anymore and therefore breaks.

From what I understand redis-client (redis dependency) works together with a gem called hiredis-client which is included in the redis-client repository on github: https://github.com/redis-rb/redis-client/tree/master/hiredis-client

What is the recommended solution?