Fix Ruby 2.7 kwargs warning in RedisCacheStoreProxy

This commit is contained in:
fukayatsu 2020-12-15 23:20:58 +09:00
parent 6d1bc9b617
commit 9020201ff5

View file

@ -10,7 +10,7 @@ module Rack
store.class.name == "ActiveSupport::Cache::RedisCacheStore"
end
def increment(name, amount = 1, options = {})
def increment(name, amount = 1, **options)
# RedisCacheStore#increment ignores options[:expires_in].
#
# So in order to workaround this we use RedisCacheStore#write (which sets expiration) to initialize