HEX
Server: Apache
System: Linux s198.coreserver.jp 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC 2025 x86_64
User: nagasaki (10062)
PHP: 7.1.33
Disabled: NONE
Upload Files
File: //usr/local/rvm/gems/default/doc/sprockets-4.0.2/ri/Sprockets/Cache/cdesc-Cache.ri
U:RDoc::NormalClass[iI"
Cache:ETI"Sprockets::Cache;TI"Object;To:RDoc::Markup::Document:@parts[	o;;[o:RDoc::Markup::Paragraph;[I"QPublic: Wrapper interface to backend cache stores. Ensures a consistent API ;TI"6even when the backend uses get/set or read/write.;To:RDoc::Markup::BlankLineo;	;[I"Public cache interface;T@o;	;[I"DAlways assign the backend store instance to Environment#cache=.;T@o:RDoc::Markup::Verbatim;[I"Aenvironment.cache = Sprockets::Cache::MemoryStore.new(1000)
;T:@format0o;	;[I"MEnvironment#cache will always return a wrapped Cache interface. See the ;TI")methods marked public on this class.;T@o;	;[I"Backend cache interface;T@o;	;[I"8The Backend cache store must implement two methods.;T@o;	;[I"
get(key);T@o;;[I"Dkey - An opaque String with a length less than 250 characters.
;TI"
;TI"*Returns an JSON serializable object.
;T;0o;	;[I"set(key, value);T@o;;[I"MWill only be called once per key. Setting a key "foo" with value "bar",
;TI"Ethen later key "foo" with value "baz" is an undefined behavior.
;TI"
;TI"Fkey   - An opaque String with a length less than 250 characters.
;TI")value - A JSON serializable object.
;TI"
;TI"Returns argument value.
;T;0o;	;[I"clear(options);T@o;;[	I"HClear the entire cache. Be careful with this method since it could
;TI";affect other processes if shared cache is being used.
;TI"
;TI"GThe options hash is passed to the underlying cache implementation.;T;0:
@fileI"lib/sprockets/cache.rb;T:0@omit_headings_from_table_of_contents_below0o;;[;
I"&lib/sprockets/cache/file_store.rb;T;0o;;[;
I"(lib/sprockets/cache/memory_store.rb;T;0o;;[;
I"&lib/sprockets/cache/null_store.rb;T;0;
0;0[[U:RDoc::Constant[iI"VERSION;TI"Sprockets::Cache::VERSION;T:public0o;;[o;	;[I"NInternal: Cache key version for this class. Rarely should have to change ;TI"Nunless the cache format radically changes. Will be bump on major version ;TI"releases though.;T;
@C;0@C@cRDoc::NormalClass0U;[iI"PEEK_SIZE;TI" Sprockets::Cache::PEEK_SIZE;T;0o;;[;
@C;0@C@@Z0[[[I"
class;T[[;[[I"default_logger;TI"lib/sprockets/cache.rb;T[I"new;T@j[:protected[[:private[[I"
instance;T[[;[
[I"
clear;T@j[I"
fetch;T@j[I"get;T@j[I"inspect;T@j[I"set;T@j[;[[;[[I"expand_key;T@j[I"get_cache_wrapper;T@j[I"
peek_key;T@j[[U:RDoc::Context::Section[i0o;;[;
0;0[
@C@F@I@LI"!lib/sprockets/environment.rb;TI"Sprockets;TcRDoc::NormalModule