Module: Nitro::Caching::Fragments
- Defined in:
- lib/nitro/caching/fragments.rb
Overview
Action caching. Caches a fragment, ie a page part. Use output caching for full page caching.
Class Method Summary collapse
Class Method Details
.get(name, options = {}) ⇒ Object
21 22 23 |
# File 'lib/nitro/caching/fragments.rb', line 21 def self.get(name, = {}) return self.cache.get(name, ) end |
.put(name, content = nil, options = {}) ⇒ Object
25 26 27 28 |
# File 'lib/nitro/caching/fragments.rb', line 25 def self.put(name, content = nil, = {}) self.cache.put(name, content, ) return content end |