Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
interface Microsoft.​Extensions.​Caching.​Memory.​ICacheEntry
Assembly: Microsoft.Extensions.Caching.Abstractions
Implemented Interfaces
Represents an entry in the <see cref="T:Microsoft.Extensions.Caching.Memory.IMemoryCache" /> implementation. When Disposed, is committed to the cache.
Properties
AbsoluteExpiration
Gets or sets an absolute expiration date for the cache entry.
AbsoluteExpirationRelativeToNow
Gets or sets an absolute expiration time, relative to now.
System.​Collections.​Generic.​IList<​Primitives.​IChangeToken>
ExpirationTokens
Gets the <see cref="T:Microsoft.Extensions.Primitives.IChangeToken" /> instances which cause the cache entry to expire.
object
Key
Gets the key of the cache entry.
System.​Collections.​Generic.​IList<​PostEvictionCallbackRegistration>
PostEvictionCallbacks
Gets or sets the callbacks will be fired after the cache entry is evicted from the cache.
Priority
Gets or sets the priority for keeping the cache entry in the cache during a
cleanup. The default is <see cref="F:Microsoft.Extensions.Caching.Memory.CacheItemPriority.Normal" /> .
long?
Size
Gets or set the size of the cache entry value.
SlidingExpiration
Gets or sets how long a cache entry can be inactive (e.g. not accessed) before it will be removed.
This will not extend the entry lifetime beyond the absolute expiration (if set).
object
Value
Gets or set the value of the cache entry.