class ActiveSupport::Cache::Store

def initialize(options = nil)

relevant cache operations, such as #read, #write, and #fetch.
Any other specified options are treated as default options for the

Using a custom coder disables automatic compression.
with a custom one. The +coder+ must respond to +dump+ and +load+.
* +:coder+ - Replaces the default cache entry serialization mechanism
applications.
especially useful if your application shares a cache with other
* +:namespace+ - Sets the namespace for the cache. This option is

==== Options

Creates a new cache.
def initialize(options = nil)
  @options = options ? normalize_options(options) : {}
  @options[:compress] = true unless @options.key?(:compress)
  @options[:compress_threshold] = DEFAULT_COMPRESS_LIMIT unless @options.key?(:compress_threshold)
  @coder = @options.delete(:coder) { default_coder } || NullCoder
  @coder_supports_compression = @coder.respond_to?(:dump_compressed)
end