DistributedCacheEntryOptions class

Provides options for configuring distributed cache entries.

Constructors

DistributedCacheEntryOptions({DateTime? absoluteExpiration, Duration? absoluteExpirationRelativeToNow, Duration? slidingExpiration})
Creates a new instance of DistributedCacheEntryOptions.

Properties

absoluteExpiration DateTime?
Gets or sets the absolute expiration date for the cache entry.
getter/setter pair
absoluteExpirationRelativeToNow Duration?
Gets or sets the absolute expiration time, relative to now.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
slidingExpiration Duration?
Gets or sets how long a cache entry can be inactive (not accessed) before it will be removed. This will not extend the entry lifetime beyond the absolute expiration (if set).
getter/setter pair

Methods

freeze() → void
Freezes the options to prevent further modifications.
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