GenSpoxy v0.0.14-beta.2 Spoxy.Cache View Source

responsible on orchestration of the request lifecycle. in case the request is cached returns the response, if the cached data is in the cache but with stale data, the cached data will be returned when executed within non-blocking mode.

when the request isn’t in the cache, trigger a calculation (called prerender) and stores the result for later usage.

Link to this section Summary

Link to this section Functions

Link to this function async_get_or_fetch(mods, req, req_key, opts \\ []) View Source
Link to this function do_req(prerender_module, req) View Source
Link to this function enqueue_req(tasks_executor_mod, req_key, req, opts) View Source
Link to this function get(store_module, req_key, opts \\ []) View Source
Link to this function get_or_fetch(mods, req, req_key, opts \\ []) View Source
Link to this function lookup_req(store_module, table_name, req_key) View Source
Link to this function refresh_req!(arg, req, req_key, opts) View Source
Link to this function should_invalidate?(req, resp, metadata) View Source
Link to this function store_req!(store_module, opts) View Source