mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Remove MemCacheStore#write_entry options nil check
It will always be a hash since ee51b51b60
.
This commit is contained in:
parent
f04819972b
commit
1b2879404f
1 changed files with 1 additions and 1 deletions
|
@ -141,7 +141,7 @@ module ActiveSupport
|
|||
|
||||
# Write an entry to the cache.
|
||||
def write_entry(key, entry, **options)
|
||||
method = options && options[:unless_exist] ? :add : :set
|
||||
method = options[:unless_exist] ? :add : :set
|
||||
value = options[:raw] ? entry.value.to_s : entry
|
||||
expires_in = options[:expires_in].to_i
|
||||
if expires_in > 0 && !options[:raw]
|
||||
|
|
Loading…
Reference in a new issue