Module: HeuristicCache::Helpers
- Defined in:
- lib/heuristic_cache/cache_helper.rb
Instance Method Summary collapse
Instance Method Details
#cacheable?(object) ⇒ Boolean
8 9 10 |
# File 'lib/heuristic_cache/cache_helper.rb', line 8 def cacheable?(object) ::HeuristicCache.cacheable?(object) end |
#ttl_for(object, action) ⇒ Object
12 13 14 |
# File 'lib/heuristic_cache/cache_helper.rb', line 12 def ttl_for(object, action) ::HeuristicCache::TTL.for(object, action) end |