MemoryCacheEntryOptions class
Provides options for configuring memory cache entries.
Constructors
-
MemoryCacheEntryOptions({DateTime? absoluteExpiration, Duration? absoluteExpirationRelativeToNow, Duration? slidingExpiration, CacheItemPriority priority = CacheItemPriority.normal, int? size, List<
Stream< ? expirationTokens, List<void> >PostEvictionCallbackRegistration> ? postEvictionCallbacks}) - Creates a new instance of MemoryCacheEntryOptions.
Properties
- absoluteExpiration ↔ DateTime?
-
getter/setter pair
- absoluteExpirationRelativeToNow ↔ Duration?
-
Gets or sets the absolute expiration time, relative to now.
getter/setter pair
-
expirationTokens
→ List<
Stream< void> > -
Gets the Streams that cause the cache entry to expire.
no setter
- hasExpirationTokens → bool
-
Helper to check if expiration tokens have been initialized.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasPostEvictionCallbacks → bool
-
Helper to check if post-eviction callbacks have been initialized.
no setter
-
postEvictionCallbacks
→ List<
PostEvictionCallbackRegistration> -
Gets the PostEvictionCallbackRegistration instances to call when
the cache entry is evicted.
no setter
- priority ↔ CacheItemPriority
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size ↔ int?
-
Gets or sets the size of the cache entry value.
getter/setter pair
- 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
-
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