Class: Sprockets::Cache::GetWrapper
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
Wrapper ,
Struct
|
|
Instance Chain:
self,
Wrapper ,
Struct
|
|
Inherits: |
Sprockets::Cache::Wrapper
|
Defined in: | lib/sprockets/cache.rb |
Instance Attribute Summary
Instance Method Summary
Instance Method Details
#clear(options = nil)
[ GitHub ]# File 'lib/sprockets/cache.rb', line 230
def clear(=nil) # dalli has a #flush method so try it if cache.respond_to?(:flush) cache.flush( ) else cache.clear( ) end true end
#get(key)
[ GitHub ]# File 'lib/sprockets/cache.rb', line 222
def get(key) cache.get(key) end
#set(key, value)
[ GitHub ]# File 'lib/sprockets/cache.rb', line 226
def set(key, value) cache.set(key, value) end