View Source Buzzword.Cache.Server (Buzzword Cache v0.1.2)

A process that loads a map of buzzwords from an external file and caches it for expedient access. The cache is automatically refreshed every hour.

Link to this section Summary

Types

Server state

Functions

Returns a specification to start this module under a supervisor.

Callback implementation for GenServer.init/1.

Link to this section Types

@type state() :: {Buzzword.Cache.buzzwords(), reference()}

Server state

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

@spec init(term()) :: {:ok, state()}

Callback implementation for GenServer.init/1.

@spec start_link(term()) :: GenServer.on_start()