ResourceCache.Source behaviour (Resource Cache v0.0.4) View Source
Link to this section Summary
Link to this section Types
Specs
fingerprint() :: term()
Link to this section Callbacks
Specs
__type__() :: :cache | :source | :bridge
Specs
Specs
init(cache :: module(), fingerprint :: fingerprint(), opts :: Keyword.t()) :: :ok | {:error, atom()}
Specs
Specs
primary(fingerprint :: fingerprint()) :: atom() | nil
Specs
release(cache :: module(), fingerprint :: fingerprint()) :: :ok | {:error, atom()}