Behaviour for feed HTTP conditional-GET cache adapters.
Implementations are responsible for their own configuration. No path or directory is threaded through the interface — each adapter reads what it needs from its own application environment.
Configure the active adapter in the consuming application:
config :exoplanet, cache_adapter: MyApp.FeedCacheSet to nil (or omit) to disable caching entirely.
Summary
Callbacks
Returns the cached entry for the given URL, or nil if absent.
Called when a fetch fails (non-200/304 response or connection error).
status is the HTTP status code, or nil for connection-level failures.
reason is a human-readable error string (e.g. "HTTP 404").
Called when a fetch succeeds (200 or 304). status is the HTTP status code.
Stores (or replaces) the cache entry for the given URL. Returns :ok.
Types
Callbacks
Returns the cached entry for the given URL, or nil if absent.
Called when a fetch fails (non-200/304 response or connection error).
status is the HTTP status code, or nil for connection-level failures.
reason is a human-readable error string (e.g. "HTTP 404").
Called when a fetch succeeds (200 or 304). status is the HTTP status code.
Stores (or replaces) the cache entry for the given URL. Returns :ok.