ModifiedExpiryPolicy class

An ExpiryPolicy that defines the expiry Duration of a Cache Entry based on the last time it was updated. Updating includes created and changing (updating) an entry.

Implemented types

Constructors

ModifiedExpiryPolicy(Duration _expiryDuration)
Builds a ModifiedExpiryPolicy ExpiryPolicy
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

getExpiryForAccess() → Duration?
Gets the Duration before an accessed CacheEntry is considered expired.
override
getExpiryForCreation() → Duration
Gets the Duration before a newly created CacheEntry is considered expired.
override
getExpiryForUpdate() → Duration
Gets the Duration before an updated CacheEntry is considered expired.
override
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