CachePolicy class
Constructors
- CachePolicy({required Duration cacheDuration, required Duration invalidationInterval})
Properties
- cacheDuration → Duration
-
This define after how much time cache will get expire
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- invalidationInterval → Duration
-
This define at what interval HasDataChanged logic needs to be executed
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
Static Properties
- main → CachePolicy
-
Default CachePolicy, having cacheDuration = 5 min,
invalidationInterval = 10 sec
final