buildServiceCacheOptions function
Options
buildServiceCacheOptions({})
try to get maxAge and maxStale from response headers. local settings will always overview the value get from service.
Implementation
Options buildServiceCacheOptions(
{Options? options,
Duration? maxStale,
String? primaryKey,
String? subKey,
bool? forceRefresh}) =>
buildConfigurableCacheOptions(
options: options,
maxStale: maxStale,
primaryKey: primaryKey,
subKey: subKey,
forceRefresh: forceRefresh);