Islands.Board.Cache.Server (Islands Board Cache v0.1.38)

View Source

Process that generates a list of boards and caches it for expedient access.

Summary

Types

Server state

Functions

Returns a specification to start this module under a supervisor.

Callback implementation for GenServer.init/1.

Spawns a cache server process registered with the module name.

Types

state()

@type state() :: [Islands.Board.t()]

Server state

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

init(init_arg)

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

Callback implementation for GenServer.init/1.

start_link(init_arg)

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

Spawns a cache server process registered with the module name.