View Source GoogleAds.TokenCache (GoogleAds v0.1.2)

Cache instance for Google Ads tokens.

Summary

Types

prismatic_ref()

@type prismatic_ref() :: String.t()

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

get(prismatic_ref)

@spec get(prismatic_ref()) :: GoogleAds.Token.t() | nil

insert(prismatic_ref, token, now \\ DateTime.utc_now())

@spec insert(prismatic_ref(), GoogleAds.Token.t(), DateTime.t()) :: :ok

start_link(opts)

@spec start_link(any()) :: {:ok, pid()} | {:error, any()}