GenSpoxy v0.0.14-beta.2 GenSpoxy.Store behaviour View Source

Behaviour to be implemented by backing stores

Link to this section Summary

Callbacks

removing the cached ‘request’ -> ‘response’ pair using req_key

retrieving the data locally

storing the prerender ‘request’ -> ‘response’ pairs locally

Link to this section Callbacks

Link to this callback invalidate!(table_name, req_key) View Source
invalidate!(table_name :: String.t(), req_key :: any()) :: any()

removing the cached ‘request’ -> ‘response’ pair using req_key

Link to this callback lookup_req(table_name, req_key) View Source
lookup_req(table_name :: term(), req_key :: any()) :: any()

retrieving the data locally

Link to this callback store_req!(table_name, entry, opts) View Source
store_req!(table_name :: String.t(), entry :: tuple(), opts :: any()) :: any()

storing the prerender ‘request’ -> ‘response’ pairs locally