HostKit.Package.Repology.Cache (host_kit v0.1.0-beta.0)

Copy Markdown View Source

Filesystem cache for Repology API responses.

Summary

Functions

fetch(key, opts, fun)

@spec fetch(term(), keyword(), (-> {:ok, term()} | {:error, term()})) ::
  {:ok, term()} | {:error, term()}

fetch_with_source(key, opts, fun)

@spec fetch_with_source(term(), keyword(), (-> {:ok, term()} | {:error, term()})) ::
  {:ok, term(), atom()} | {:error, term()}