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

Simple cache for reducing unnecessary traffic to the ATECC508A

Link to this section Summary

Functions

Check if the specified request is in the cache

Initialize the cache for one ATECC508A

Save a response back to the cache

Link to this section Types

Specs

state() :: map()

Link to this section Functions

Specs

get(state(), binary()) :: binary() | nil

Check if the specified request is in the cache

Specs

init() :: state()

Initialize the cache for one ATECC508A

Link to this function

put(cache, request, response)

View Source

Specs

put(state(), binary(), any()) :: state()

Save a response back to the cache