class ActiveSupport::Cache::Store

def write(name, value, options = nil)

Options are passed to the underlying cache implementation.

Writes the value to the cache, with the key.
def write(name, value, options = nil)
  options = merged_options(options)
  instrument(:write, name, options) do
    entry = Entry.new(value, options)
    write_entry(namespaced_key(name, options), entry, options)
  end
end