mirror of
https://github.com/samsonjs/rack-attack.git
synced 2026-04-27 15:07:41 +00:00
Fix Ruby 2.7 kwargs warning in RedisCacheStoreProxy
This commit is contained in:
parent
6d1bc9b617
commit
9020201ff5
1 changed files with 1 additions and 1 deletions
|
|
@ -10,7 +10,7 @@ module Rack
|
||||||
store.class.name == "ActiveSupport::Cache::RedisCacheStore"
|
store.class.name == "ActiveSupport::Cache::RedisCacheStore"
|
||||||
end
|
end
|
||||||
|
|
||||||
def increment(name, amount = 1, options = {})
|
def increment(name, amount = 1, **options)
|
||||||
# RedisCacheStore#increment ignores options[:expires_in].
|
# RedisCacheStore#increment ignores options[:expires_in].
|
||||||
#
|
#
|
||||||
# So in order to workaround this we use RedisCacheStore#write (which sets expiration) to initialize
|
# So in order to workaround this we use RedisCacheStore#write (which sets expiration) to initialize
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue