File: //usr/local/rvm/gems/ruby-3.0.2/doc/activesupport-6.1.4.1/ri/ActiveSupport/Cache/lookup_store-c.ri
U:RDoc::AnyMethod[iI"lookup_store:ETI"'ActiveSupport::Cache::lookup_store;TT:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"?Creates a new Store object according to the given options.;To:RDoc::Markup::BlankLine o;
; [I";If no arguments are passed to this method, then a new ;TI"?ActiveSupport::Cache::MemoryStore object will be returned.;T@o;
; [I"LIf you pass a Symbol as the first argument, then a corresponding cache ;TI"Kstore class under the ActiveSupport::Cache namespace will be created. ;TI"For example:;T@o:RDoc::Markup::Verbatim; [
I"6ActiveSupport::Cache.lookup_store(:memory_store)
;TI"A# => returns a new ActiveSupport::Cache::MemoryStore object
;TI"
;TI"9ActiveSupport::Cache.lookup_store(:mem_cache_store)
;TI"C# => returns a new ActiveSupport::Cache::MemCacheStore object
;T:@format0o;
; [I"NAny additional arguments will be passed to the corresponding cache store ;TI"class's constructor:;T@o;; [I"BActiveSupport::Cache.lookup_store(:file_store, '/tmp/cache')
;TI"E# => same as: ActiveSupport::Cache::FileStore.new('/tmp/cache')
;T;
0o;
; [I"LIf the first argument is not a Symbol, then it will simply be returned:;T@o;; [I"<ActiveSupport::Cache.lookup_store(MyOwnCacheStore.new)
;TI"%# => returns MyOwnCacheStore.new;T;
0:
@fileI" lib/active_support/cache.rb;T:0@omit_headings_from_table_of_contents_below000[ I"(store = nil, *parameters);T@.FI"
Cache;TcRDoc::NormalModule00