View Source CloudflareApi.Cache (cloudflare_api v0.2.2)
An optional short-term cache for API lookups.
This lets you repeat the same requests multiple times without actually making a call to the Cloudflare API. This will help a lot with rate limiting. For example if you have code that queries the records for a particular hostname many times, this cache will allow you to repeat the call many times per minute and a real API call will only go out once every <cache-interval>.
Link to this section Summary
Functions
Returns a specification to start this module under a supervisor.
Link to this section Types
Specs
t() :: %CloudflareApi.Cache{ expire_seconds: non_neg_integer(), hostnames: %{required(String.t()) => CloudflareApi.CacheEntry.t()} }