ArcgisGeocode v0.1.0 ArcgisGeocode.Cache

An Agent implementation for storage of a previously requested access token and its expiration date.

Summary

Functions

Clears the access token and expiration entries

Retrieves the previously stored access token

Stores the given access token and expiration Date for later use

Called by the ArcgisGeocode Application on start

Functions

clear()

Specs

clear :: :ok

Clears the access token and expiration entries.

get()

Specs

get :: map

Retrieves the previously stored access token.

put(token, expiration)

Specs

put(String.t, Timex.DateTime.t) :: :ok

Stores the given access token and expiration Date for later use.

start_link()

Called by the ArcgisGeocode Application on start.