ICacheEntry class abstract

Represents an entry in the IMemoryCache.

Available extensions

Constructors

ICacheEntry()

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
expirationTokens List<Stream<void>>
Gets the Streams that cause the cache entry to expire.
no setter
hashCode int
The hash code for this object.
no setterinherited
key Object
Gets the key of the cache entry.
no setter
postEvictionCallbacks List<PostEvictionCallbackRegistration>
Gets the PostEvictionCallbackRegistration instances to call when the cache entry is evicted.
no setter
priority CacheItemPriority
Gets or sets the priority for keeping the cache entry in the cache during a memory pressure triggered cleanup.
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.
getter/setter pair
value Object?
Gets or sets the value of the cache entry.
getter/setter pair

Methods

commitToCache() → void

Available on ICacheEntry, provided by the CacheEntryCommit extension

Commits this entry to the cache.
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