HybridCacheBuilderExtensions Class

Definition

Configuration extension methods for IHybridCacheBuilder / HybridCache.

public static class HybridCacheBuilderExtensions
Inheritance
HybridCacheBuilderExtensions

Methods

AddSerializer<T,TImplementation>(IHybridCacheBuilder)

Serialize values of type T with the serializer of type TImplementation.

AddSerializer<T>(IHybridCacheBuilder, IHybridCacheSerializer<T>)

Serialize values of type T with the specified serializer from serializer.

AddSerializerFactory(IHybridCacheBuilder, IHybridCacheSerializerFactory)

Add factory as an additional serializer factory, which can provide serializers for multiple types.

AddSerializerFactory<TImplementation>(IHybridCacheBuilder)

Add a factory of type TImplementation as an additional serializer factory, which can provide serializers for multiple types.

Applies to

Prodotto Versioni
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)
.NET Standard 2.0 (package-provided), 2.1 (package-provided)