Closed
Description
The 'redis-store' gem depends on the 'redis' gem.
The 'redis' gem since 5.0 does not support redis clusters. redis clusters are supported by the 'redis-clustering' gem.
https://github.com/redis/redis-rb/blob/master/CHANGELOG.md#500
Now I got exception by this code.
require 'redis-store'
redis = ::Redis::Store::Factory.create({cluster: 'redis://redis_cluster:7001/0'})
exception message
$ bundle exec ruby app.rb
/app/vendor/bundle/ruby/3.2.0/gems/redis-5.0.7/lib/redis.rb:136:in `initialize_client': Redis Cluster support was moved to the `redis-clustering` gem. (RuntimeError)
from /app/vendor/bundle/ruby/3.2.0/gems/redis-5.0.7/lib/redis.rb:73:in `initialize'
from /app/vendor/bundle/ruby/3.2.0/gems/redis-store-1.10.0/lib/redis/store.rb:21:in `initialize'
from /app/vendor/bundle/ruby/3.2.0/gems/redis-store-1.10.0/lib/redis/store/factory.rb:27:in `new'
from /app/vendor/bundle/ruby/3.2.0/gems/redis-store-1.10.0/lib/redis/store/factory.rb:27:in `create'
from /app/vendor/bundle/ruby/3.2.0/gems/redis-store-1.10.0/lib/redis/store/factory.rb:10:in `create'
from app.rb:3:in `<main>'
Metadata
Metadata
Assignees
Labels
No labels