ResourceCache.CacheManager (Resource Cache v0.0.4) View Source

Link to this section Summary

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

configure(cache, source, opts \\ [])

View Source

Specs

configure(cache :: module(), source :: module(), opts :: Keyword.t()) ::
  :ok | {:error, atom()}

Specs

fingerprint(cache :: module()) :: ResourceCache.Source.fingerprint() | nil
Link to this function

preload(cache, source, opts \\ [])

View Source

Specs

preload(cache :: module(), source :: module(), opts :: Keyword.t()) ::
  :ok | {:error, atom()}

Specs

source(cache :: module()) :: module() | nil
Link to this function

source_fingerprint(cache)

View Source

Specs

source_fingerprint(cache :: module()) ::
  {source :: module(), fingerprint :: ResourceCache.Source.fingerprint()} | nil
Link to this function

source_updated(source, fingerprint)

View Source

Specs

source_updated(
  source :: module(),
  fingerprint :: ResourceCache.Source.fingerprint()
) :: :ok

Specs

start_link(any()) :: :ignore | {:error, any()} | {:ok, pid()}
Link to this function

state(source, fingerprint)

View Source

Specs

state(source :: module(), fingerprint :: ResourceCache.Source.fingerprint()) ::
  term()