Class: ActionDispatch::RailsMetaStore
- Inherits:
-
Rack::Cache::MetaStore
- Object
- Rack::Cache::MetaStore
- ActionDispatch::RailsMetaStore
- Defined in:
- actionpack/lib/action_dispatch/http/rack_cache.rb
Class Method Summary (collapse)
Instance Method Summary (collapse)
-
- (RailsMetaStore) initialize(store = RAILS_CACHE)
constructor
TODO: Finally deal with the RAILS_CACHE global.
- - (Object) read(key)
- - (Object) write(key, value)
Constructor Details
- (RailsMetaStore) initialize(store = RAILS_CACHE)
TODO: Finally deal with the RAILS_CACHE global
12 13 14 |
# File 'actionpack/lib/action_dispatch/http/rack_cache.rb', line 12 def initialize(store = RAILS_CACHE) @store = store end |
Class Method Details
+ (Object) resolve(uri)
7 8 9 |
# File 'actionpack/lib/action_dispatch/http/rack_cache.rb', line 7 def self.resolve(uri) new end |
Instance Method Details
- (Object) read(key)
16 17 18 |
# File 'actionpack/lib/action_dispatch/http/rack_cache.rb', line 16 def read(key) @store.read(key) || [] end |
- (Object) write(key, value)
20 21 22 |
# File 'actionpack/lib/action_dispatch/http/rack_cache.rb', line 20 def write(key, value) @store.write(key, value) end |