View Source ATECC508A.Transport.Cache (atecc508a v1.3.0)

Simple cache for reducing unnecessary traffic to the ATECC508A

Summary

Functions

Returns a specification to start this module under a supervisor.

Check the cache for the request

Selectively cache responses

Types

@type response() :: {:ok, binary()} | {:error, any()}

Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

@spec get(GenServer.server(), binary()) :: response() | nil

Check the cache for the request

Link to this function

put(pid, request, response)

View Source
@spec put(GenServer.server(), binary(), response()) :: :ok

Selectively cache responses

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