Config class
The config to customize DataCacheManager.
Constructors
Properties
- cleanupInterval → Duration?
-
The interval between cache cleanups.
final
- cleanupOnInit → bool
-
Whether to cleanup once on initialization only. Default to
false
.final - dbKey → String
-
The unique identifier for DataCacheManager, also use as the database
file name. Default to
data_cache
.final - hashCode → int
-
The hash code for this object.
no setterinherited
- maxCacheSize → int?
-
The maximum cache size in bytes.
final
-
props
→ List<
Object?> -
The list of properties that will be used to determine whether
two instances are equal.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stalePeriod → Duration?
-
The minimum Duration for a cache to become stale.
final
- stringify → bool
-
If set to
true
, the toString method will be overridden to output this instance's props.no setter - useMemCache → bool
-
Whether to cache data in memory or not. Default to
true
.final - useNtpDateTime → bool
-
Whether to use Network Time Protocol (NTP) datetime. Default to
false
.final
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