CacheOptions constructor
const
CacheOptions({})
Constructor to create a CacheOptions instance with specified settings.
Implementation
const CacheOptions({
this.generateCacheKey,
this.useAuthorization =
true, // Default is true; JWT is included in cache key.
this.useSecureStorage =
false, // Default is false; responses are not stored securely by default.
this.resetOnRestart =
false, // Default is false; cache won't reset on restart.
this.cacheLifetimeDuration =
const Duration(days: 10), // Default cache lifetime is 10 days.
});