instance method
write_entry
Ruby on Rails 6.1.7.10
Since v5.2.8.1 Last seen in v6.1.7.10 PrivateSignature
write_entry(key, entry, **options)
No documentation comment.
Parameters
-
keyreq -
entryreq -
optionskeyrest
Source
# File activesupport/lib/active_support/cache/strategy/local_cache.rb, line 158
def write_entry(key, entry, **options)
if options[:unless_exist]
local_cache.delete_entry(key, **options) if local_cache
else
local_cache.write_entry(key, entry, **options) if local_cache
end
super
end
Defined in activesupport/lib/active_support/cache/strategy/local_cache.rb line 158
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Cache::Strategy::LocalCache