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

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.

@spec 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
@spec put(GenServer.server(), binary(), any()) :: any()

Save a response back to the cache

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