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.

class Microsoft.​Extensions.​Caching.​Distributed.​DistributedCacheEntryOptions

Assembly: Microsoft.Extensions.Caching.Abstractions

Inheritance: object → DistributedCacheEntryOptions

Provides the cache options for an entry in <see cref="T:Microsoft.Extensions.Caching.Distributed.IDistributedCache" /> .

Properties

AbsoluteExpiration
Gets or sets an absolute expiration date for the cache entry.
AbsoluteExpirationRelativeToNow
Gets or sets an absolute expiration time, relative to now.
SlidingExpiration
Gets or sets how long a cache entry can be inactive (for example, not accessed) before it will be removed. This will not extend the entry lifetime beyond the absolute expiration (if set).

Methods

public bool
Equals​(object obj)
Inherited from object
protected void
Finalize​()
Inherited from object
public int
GetHashCode​()
Inherited from object
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object
public string
ToString​()
Inherited from object