FFXCacheConfig class
Cache tuning for FlutterFlowCloud.initialize.
Constructors
- FFXCacheConfig({bool enabled = true, bool persist = true, int maxEntries = 200, Duration maxAge = const Duration(hours: 24)})
-
const
Properties
- enabled → bool
-
Master switch; false disables caching entirely (cache policies then
behave like FFXFetchPolicy.networkOnly, and cacheOnly always misses).
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- maxAge → Duration
-
How old a cached page may be and still satisfy
FFXFetchPolicy.cacheFirst. FFXFetchPolicy.networkFirst ignores this
bound (stale data beats no data when offline).
final
- maxEntries → int
-
Maximum retained entries (per project); least-recently-written entries
are pruned beyond this.
final
- persist → bool
-
Whether entries persist across launches (disk / localStorage). When
false the cache is memory-only.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited