method
write_cache_value
v7.0.0 -
Show latest stable
- Class:
ActiveSupport::Cache::Strategy::LocalCache
write_cache_value(name, value, **options)private
No documentation available.
# File activesupport/lib/active_support/cache/strategy/local_cache.rb, line 149
def write_cache_value(name, value, **options)
name = normalize_key(name, options)
cache = local_cache
if value
cache.write_entry(name, serialize_entry(new_entry(value, **options), **options))
else
cache.delete_entry(name)
end
end