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.​Hybrid.​HybridCacheEntryOptions
Assembly: Microsoft.Extensions.Caching.Abstractions
Inheritance: object → HybridCacheEntryOptions
Specifies additional options (for example, expiration) that apply to a <see cref="T:Microsoft.Extensions.Caching.Hybrid.HybridCache" /> operation. When options can be specified at multiple levels (for example, globally and per-call), the values are composed; the most granular non-null value is used, with null values being inherited. If no value is specified at any level, the implementation can choose a reasonable default.
Properties
public
System.​TimeSpan?
Expiration
Gets or set the overall cache duration of this entry, passed to the backend distributed cache.
public
System.​TimeSpan?
LocalCacheExpiration
Remarks When retrieving a cached value from an external cache store, this value will be used to calculate the local
cache expiration, not exceeding the remaining overall cache lifetime.
public
HybridCacheEntryFlags?
Flags
Gets or sets additional flags that apply to the requested operation.
Methods
public
bool
Equals​(object obj)
Inherited from object
protected
void
Finalize​()
Inherited from object
public
int
GetHashCode​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object
public
string
ToString​()
Inherited from object