Skip to main content

Module fetch

Module fetch 

Source
Expand description

Read-through caching (Rails Rails.cache.fetch(key) { … }).

Functions§

fetch
Return the cached value for key, or compute it with render, store it (with optional ttl_secs), and return it. render runs only on a miss.