Gigex.Cache (gigex v0.1.2)

Cache for sites that we scrape

The cache is cleaned up automatically after 2 hours.

Summary

Functions

Returns a specification to start this module under a supervisor.

Callback implementation for GenServer.init/1.

Functions

Link to this function

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

@spec get(key :: String.t()) :: content :: String.t() | nil

Callback implementation for GenServer.init/1.

Link to this function

put(key, content)

Link to this function

start_link(arg)

@spec start_link(arg :: any()) :: :ignore | {:error, any()} | {:ok, pid()}