AlphaXCachePolicy constructor

const AlphaXCachePolicy({
  1. Duration defaultMaxAge = const Duration(minutes: 5),
  2. bool revalidateStale = true,
  3. AlphaXCacheScope scope = AlphaXCacheScope.private,
  4. String? identityKey,
})

Creates cache behavior.

Implementation

const AlphaXCachePolicy({
  this.defaultMaxAge = const Duration(minutes: 5),
  this.revalidateStale = true,
  this.scope = AlphaXCacheScope.private,
  this.identityKey,
});