plug_response_cache v0.1.1 PlugResponseCache.Store behaviour View Source

Link to this section Summary

Callbacks

Retrieve a response from the cache. If nothing was found, return a tuple with :miss and a reason, e.g. {:miss, :cold} or {:miss, :expired}

Save a response to the cache. The second argument is an expiration time in the UTC timezone. If a response should never expire, the expiration time is :never

Link to this section Callbacks

Retrieve a response from the cache. If nothing was found, return a tuple with :miss and a reason, e.g. {:miss, :cold} or {:miss, :expired}.

Save a response to the cache. The second argument is an expiration time in the UTC timezone. If a response should never expire, the expiration time is :never.