Sourcemeta Core 0.0.0
Loading...
Searching...
No Matches
sourcemeta::core::OAuthMetadataProvider::Options Struct Reference

Public Attributes

std::chrono::seconds fallback_ttl {std::chrono::hours{1}}
 The lifetime to assume when the transport advertises none.
std::chrono::seconds minimum_ttl {std::chrono::minutes{5}}
 The shortest lifetime honored, clamping smaller advertised values up.
std::chrono::seconds maximum_ttl {std::chrono::hours{24}}
 The longest lifetime honored, clamping larger advertised values down.

Detailed Description

Tunables for the caching policy. The minimum_ttl must not exceed the maximum_ttl, since an advertised lifetime is clamped low first then high.


The documentation for this struct was generated from the following file: