buildCacheOptions function

Options buildCacheOptions(
  1. Duration maxAge,
  2. {Duration? maxStale,
  3. String? primaryKey,
  4. String? subKey,
  5. Options? options,
  6. bool? forceRefresh}
)

build a normal cache options

Implementation

Options buildCacheOptions(Duration maxAge,
        {Duration? maxStale,
        String? primaryKey,
        String? subKey,
        Options? options,
        bool? forceRefresh}) =>
    buildConfigurableCacheOptions(
        maxAge: maxAge,
        options: options,
        primaryKey: primaryKey,
        subKey: subKey,
        maxStale: maxStale,
        forceRefresh: forceRefresh);