DistributedCacheEntryOptions Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides the cache options for an entry in IDistributedCache.
public ref class DistributedCacheEntryOptions
public class DistributedCacheEntryOptions
type DistributedCacheEntryOptions = class
Public Class DistributedCacheEntryOptions
- Inheritance
-
DistributedCacheEntryOptions
Constructors
DistributedCacheEntryOptions() |
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
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
GetHashCode() |
Serves as the default hash function. (Inherited from Object) |
GetType() |
Gets the Type of the current instance. (Inherited from Object) |
MemberwiseClone() |
Creates a shallow copy of the current Object. (Inherited from Object) |
ToString() |
Returns a string that represents the current object. (Inherited from Object) |
Extension Methods
SetAbsoluteExpiration(DistributedCacheEntryOptions, DateTimeOffset) |
Sets an absolute expiration date for the cache entry. |
SetAbsoluteExpiration(DistributedCacheEntryOptions, TimeSpan) |
Sets an absolute expiration time, relative to now. |
SetSlidingExpiration(DistributedCacheEntryOptions, TimeSpan) |
Sets how long the 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). |