Skip to content
Permalink
Browse files

These `options` are not defined as keyword arguments

Fixes Ruby 2.6 warnings
  • Loading branch information...
amatsuda committed Sep 5, 2019
1 parent c8e7f3c commit 3f27aa8cdf8c3c7f36d630f0241854f712e4c937
@@ -327,7 +327,7 @@ def fetch(name, options = nil)
end

if entry
get_entry_value(entry, name, **options)
get_entry_value(entry, name, options)
else
save_block_result_to_cache(name, **options) { |_name| yield _name }
end
@@ -448,7 +448,7 @@ def fetch_multi(*names)
payload[:hits] = reads.keys
payload[:super_operation] = :fetch_multi

write_multi(writes, **options)
write_multi(writes, options)

ordered
end
@@ -162,7 +162,7 @@ def write_cache_value(name, value, **options)
cache = local_cache
cache.mute do
if value
cache.write(name, value, **options)
cache.write(name, value, options)
else
cache.delete(name, **options)
end

0 comments on commit 3f27aa8

Please sign in to comment.
You can’t perform that action at this time.