123456789_123456789_123456789_123456789_123456789_

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

Wrapper - Inherited

Instance Method Summary

Instance Method Details

#clear(options = nil)

[ GitHub ]

  
# File 'lib/sprockets/cache.rb', line 230

def clear(options=nil)
  # dalli has a #flush method so try it
  if cache.respond_to?(:flush)
    cache.flush(options)
  else
    cache.clear(options)
  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