module ActiveSupport::Cache::Strategy::LocalCache

def write_serialized_entry(key, payload, **)

def write_serialized_entry(key, payload, **)
  if return_value = super
    local_cache.write_entry(key, payload) if local_cache
  else
    local_cache.delete_entry(key) if local_cache
  end
  return_value
end