Method: ActiveSupport::Cache::RedisStore#write

Defined in:
lib/active_support/cache/redis_store.rb

#write(name, value, options = nil) ⇒ Object



32
33
34
35
36
37
38
# File 'lib/active_support/cache/redis_store.rb', line 32

def write(name, value, options = nil)
  options = merged_options(options)
  instrument(:write, name, options) do |payload|
    entry = options[:raw].present? ? value : Entry.new(value, options)
    write_entry(namespaced_key(name, options), entry, options)
  end
end