buildCacheOptions function

Options buildCacheOptions (Duration maxAge, { Duration maxStale, String primaryKey, String subKey, Options options, 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);