Class: Sprockets::Cache::GetWrapper
- Defined in:
- lib/sprockets/cache.rb
Instance Method Summary collapse
Instance Method Details
#clear(options = nil) ⇒ Object
230 231 232 233 234 235 236 237 238 |
# 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) ⇒ Object
222 223 224 |
# File 'lib/sprockets/cache.rb', line 222 def get(key) cache.get(key) end |
#set(key, value) ⇒ Object
226 227 228 |
# File 'lib/sprockets/cache.rb', line 226 def set(key, value) cache.set(key, value) end |