You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the Redis gem > 4.2, we can't write anything to the session using redis-rack and a redis session.
Below is a repo-script. Using with 4.1.4 works fine; with 4.2 it throws an exception:
/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/redis-4.2.1/lib/redis.rb:836: warning: The called method `set' is defined here
ArgumentError: unknown keywords: :path, :domain, :expire_after, :secure, :httponly, :defer, :renew, :sidbits, :secure_random, :redis_server
/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/redis-4.2.1/lib/redis.rb:836:in `set'
/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/redis-store-1.8.2/lib/redis/store/interface.rb:9:in `set'
/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/redis-store-1.8.2/lib/redis/store/ttl.rb:8:in `set'
As far as I can tell, this is because of the change under this commit to the redis gem that removed the options in favour of explicit keyword arguments.
We can fix our version of redis to 4.1.4 to get around this for now, but this does appear to be something that redis-store will need fixing for too.
I just merged redis-store/redis-store#333 which should have fixed a lot of these problems. Once the ruby-head fixes are merged in I'll do a release. To use this gem with redis-rack, add this to Gemfile:
Using the Redis gem > 4.2, we can't write anything to the session using redis-rack and a redis session.
Below is a repo-script. Using with 4.1.4 works fine; with 4.2 it throws an exception:
As far as I can tell, this is because of the change under this commit to the redis gem that removed the
options
in favour of explicit keyword arguments.We can fix our version of redis to 4.1.4 to get around this for now, but this does appear to be something that redis-store will need fixing for too.
The text was updated successfully, but these errors were encountered: