Module: Rack::Identicon::Caching::ClassMethods
- Defined in:
- lib/rack/identicon/caching.rb
Instance Attribute Summary collapse
-
#cache_store ⇒ Object
Returns the value of attribute cache_store.
Instance Method Summary collapse
Instance Attribute Details
#cache_store ⇒ Object
Returns the value of attribute cache_store.
29 30 31 |
# File 'lib/rack/identicon/caching.rb', line 29 def cache_store @cache_store end |
Instance Method Details
#cache(key, &blk) ⇒ Object
31 32 33 |
# File 'lib/rack/identicon/caching.rb', line 31 def cache key, &blk cache_store.fetch NAMESPACE + "/" + key, &blk end |