CacheObj constructor

CacheObj(
  1. String key,
  2. List<int> content, {
  3. String? subKey = "",
  4. Duration? maxAge,
  5. Duration? maxStale,
  6. int? statusCode = 200,
  7. List<int>? headers,
})

Implementation

factory CacheObj(String key, List<int> content,
    {String? subKey = "",
    Duration? maxAge,
    Duration? maxStale,
    int? statusCode = 200,
    List<int>? headers}) {
  return CacheObj._(key, subKey, content, statusCode, headers)
    ..maxAge = maxAge
    ..maxStale = maxStale;
}