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

Simple cache for reducing unnecessary traffic to the ATECC508A

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Check if the specified request is in the cache

Save a response back to the cache

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Specs

get(GenServer.server(), binary()) :: binary() | nil

Check if the specified request is in the cache

Link to this function

put(pid, request, response)

View Source

Specs

put(GenServer.server(), binary(), any()) :: any()

Save a response back to the cache

Specs

start_link() :: GenServer.on_start()