CacheTtl class final
Time-to-live configuration attached to a cache entry.
Constructors
- CacheTtl(Duration duration)
-
const
- CacheTtl.hours(int hours)
- CacheTtl.minutes(int minutes)
Properties
Methods
-
isExpired(
DateTime createdAt) → bool -
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