Gigex.Cache (gigex v0.1.0)

Cache for sites that we scrape

The cache is cleaned up automatically after 2 hours.

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Callback implementation for GenServer.init/1.

Link to this section 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()

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()}