HybridCacheServiceExtensions.AddKeyedHybridCache Method

Definition

Overloads

Name Description
AddKeyedHybridCache(IServiceCollection, Object)

Adds support for multi-tier caching services with a keyed registration.

AddKeyedHybridCache(IServiceCollection, Object, Action<HybridCacheOptions>)

Adds support for multi-tier caching services with a keyed registration.

AddKeyedHybridCache(IServiceCollection, Object, String)

Adds support for multi-tier caching services with a keyed registration.

AddKeyedHybridCache(IServiceCollection, Object, String, Action<HybridCacheOptions>)

Adds support for multi-tier caching services with a keyed registration.

AddKeyedHybridCache(IServiceCollection, Object)

Adds support for multi-tier caching services with a keyed registration.

public static Microsoft.Extensions.Caching.Hybrid.IHybridCacheBuilder AddKeyedHybridCache(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, object? serviceKey);
static member AddKeyedHybridCache : Microsoft.Extensions.DependencyInjection.IServiceCollection * obj -> Microsoft.Extensions.Caching.Hybrid.IHybridCacheBuilder
<Extension()>
Public Function AddKeyedHybridCache (services As IServiceCollection, serviceKey As Object) As IHybridCacheBuilder

Parameters

services
IServiceCollection

The IServiceCollection to add the service to.

serviceKey
Object

The key for the service registration.

Returns

A builder instance that allows further configuration of the HybridCache service.

Applies to

AddKeyedHybridCache(IServiceCollection, Object, Action<HybridCacheOptions>)

Adds support for multi-tier caching services with a keyed registration.

public static Microsoft.Extensions.Caching.Hybrid.IHybridCacheBuilder AddKeyedHybridCache(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, object? serviceKey, Action<Microsoft.Extensions.Caching.Hybrid.HybridCacheOptions> setupAction);
static member AddKeyedHybridCache : Microsoft.Extensions.DependencyInjection.IServiceCollection * obj * Action<Microsoft.Extensions.Caching.Hybrid.HybridCacheOptions> -> Microsoft.Extensions.Caching.Hybrid.IHybridCacheBuilder
<Extension()>
Public Function AddKeyedHybridCache (services As IServiceCollection, serviceKey As Object, setupAction As Action(Of HybridCacheOptions)) As IHybridCacheBuilder

Parameters

services
IServiceCollection

The IServiceCollection to add the service to.

serviceKey
Object

The key for the service registration.

setupAction
Action<HybridCacheOptions>

A delegate to run to configure the HybridCacheOptions instance.

Returns

A builder instance that allows further configuration of the HybridCache service.

Applies to

AddKeyedHybridCache(IServiceCollection, Object, String)

Adds support for multi-tier caching services with a keyed registration.

public static Microsoft.Extensions.Caching.Hybrid.IHybridCacheBuilder AddKeyedHybridCache(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, object? serviceKey, string optionsName);
static member AddKeyedHybridCache : Microsoft.Extensions.DependencyInjection.IServiceCollection * obj * string -> Microsoft.Extensions.Caching.Hybrid.IHybridCacheBuilder
<Extension()>
Public Function AddKeyedHybridCache (services As IServiceCollection, serviceKey As Object, optionsName As String) As IHybridCacheBuilder

Parameters

services
IServiceCollection

The IServiceCollection to add the service to.

serviceKey
Object

The key for the service registration.

optionsName
String

The named options name to use for the HybridCacheOptions instance.

Returns

A builder instance that allows further configuration of the HybridCache service.

Applies to

AddKeyedHybridCache(IServiceCollection, Object, String, Action<HybridCacheOptions>)

Adds support for multi-tier caching services with a keyed registration.

public static Microsoft.Extensions.Caching.Hybrid.IHybridCacheBuilder AddKeyedHybridCache(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, object? serviceKey, string optionsName, Action<Microsoft.Extensions.Caching.Hybrid.HybridCacheOptions> setupAction);
static member AddKeyedHybridCache : Microsoft.Extensions.DependencyInjection.IServiceCollection * obj * string * Action<Microsoft.Extensions.Caching.Hybrid.HybridCacheOptions> -> Microsoft.Extensions.Caching.Hybrid.IHybridCacheBuilder
<Extension()>
Public Function AddKeyedHybridCache (services As IServiceCollection, serviceKey As Object, optionsName As String, setupAction As Action(Of HybridCacheOptions)) As IHybridCacheBuilder

Parameters

services
IServiceCollection

The IServiceCollection to add the service to.

serviceKey
Object

The key for the service registration.

optionsName
String

The named options name to use for the HybridCacheOptions instance.

setupAction
Action<HybridCacheOptions>

A delegate to run to configure the HybridCacheOptions instance.

Returns

A builder instance that allows further configuration of the HybridCache service.

Applies to