共用方式為


HybridCache Class

Definition

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

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)
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.

GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
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.

ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to