HybridCache 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 multi-tier caching services building on IDistributedCache backends.
public ref class HybridCache abstract
public abstract class HybridCache
type HybridCache = class
Public MustInherit Class HybridCache
- Inheritance
-
HybridCache
Constructors
HybridCache() |
Methods
GetOrCreateAsync<T>(String, Func<CancellationToken,ValueTask<T>>, HybridCacheEntryOptions, IEnumerable<String>, CancellationToken) |
Asynchronously gets the value associated with the key if it exists, or generates a new entry using the provided key and a value from the given factory if the key is not found. |
GetOrCreateAsync<TState,T>(String, TState, Func<TState,CancellationToken, ValueTask<T>>, HybridCacheEntryOptions, IEnumerable<String>, CancellationToken) |
Asynchronously gets the value associated with the key if it exists, or generates a new entry using the provided key and a value from the given factory if the key is not found. |
RemoveAsync(IEnumerable<String>, CancellationToken) |
Asynchronously removes the value associated with the key if it exists. |
RemoveAsync(String, CancellationToken) |
Asynchronously removes the value associated with the key if it exists. |
RemoveByTagAsync(IEnumerable<String>, CancellationToken) |
Asynchronously removes all values associated with the specified tags. |
RemoveByTagAsync(String, CancellationToken) |
Asynchronously removes all values associated with the specified tag. |
SetAsync<T>(String, T, HybridCacheEntryOptions, IEnumerable<String>, CancellationToken) |
Asynchronously sets or overwrites the value associated with the key. |
Applies to
.NET