Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove ttl from redis initialization options for redis-rb v5 #149

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions AUTHORS.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
Redis Session Store authors
===========================

- Atsushi Tatsuma
- Ben Marini
- Bill Ruddock
- Dan Buch
Expand Down
2 changes: 1 addition & 1 deletion lib/redis-session-store.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def initialize(app, options = {})

@default_options[:namespace] = 'rack:session'
@default_options.merge!(options[:redis] || {})
init_options = options[:redis]&.reject { |k, _v| %i[expire_after key_prefix].include?(k) } || {}
init_options = options[:redis]&.reject { |k, _v| %i[expire_after ttl key_prefix].include?(k) } || {}
@redis = init_options[:client] || Redis.new(init_options)
@on_redis_down = options[:on_redis_down]
@serializer = determine_serializer(options[:serializer])
Expand Down