TTLInvalidationMethod class final
A class representing the Time-To-Live (TTL) invalidation method.
This class extends InvalidationMethod and provides an implementation for invalidation based on a maximum duration.
- Inheritance
-
- Object
- InvalidationMethod
- TTLInvalidationMethod
Constructors
- TTLInvalidationMethod.new({Duration maxDuration = const Duration(days: 1)})
-
Creates a TTLInvalidationMethod with an optional
maxDuration
.const
Properties
- endAt → DateTime
-
Gets the date and time when the invalidation should end.
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- maxDuration → Duration
-
The maximum duration for the TTL invalidation.
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