AlphaXCachePolicy constructor
const
AlphaXCachePolicy({
- Duration defaultMaxAge = const Duration(minutes: 5),
- bool revalidateStale = true,
- AlphaXCacheScope scope = AlphaXCacheScope.private,
- String? identityKey,
Creates cache behavior.
Implementation
const AlphaXCachePolicy({
this.defaultMaxAge = const Duration(minutes: 5),
this.revalidateStale = true,
this.scope = AlphaXCacheScope.private,
this.identityKey,
});