RedisDataProtectionBuilderExtensions.PersistKeysToRedis RedisDataProtectionBuilderExtensions.PersistKeysToRedis RedisDataProtectionBuilderExtensions.PersistKeysToRedis Method

Definition

Overloads

PersistKeysToRedis(IDataProtectionBuilder, IConnectionMultiplexer) PersistKeysToRedis(IDataProtectionBuilder, IConnectionMultiplexer) PersistKeysToRedis(IDataProtectionBuilder, IConnectionMultiplexer)

Configures the data protection system to persist keys to the default key ('DataProtection-Keys') in Redis database

PersistKeysToRedis(IDataProtectionBuilder, IConnectionMultiplexer, RedisKey) PersistKeysToRedis(IDataProtectionBuilder, IConnectionMultiplexer, RedisKey) PersistKeysToRedis(IDataProtectionBuilder, IConnectionMultiplexer, RedisKey)

Configures the data protection system to persist keys to the specified key in Redis database

PersistKeysToRedis(IDataProtectionBuilder, Func<IDatabase>, RedisKey) PersistKeysToRedis(IDataProtectionBuilder, Func<IDatabase>, RedisKey) PersistKeysToRedis(IDataProtectionBuilder, Func<IDatabase>, RedisKey)

Configures the data protection system to persist keys to specified key in Redis database

PersistKeysToRedis(IDataProtectionBuilder, IConnectionMultiplexer) PersistKeysToRedis(IDataProtectionBuilder, IConnectionMultiplexer) PersistKeysToRedis(IDataProtectionBuilder, IConnectionMultiplexer)

Configures the data protection system to persist keys to the default key ('DataProtection-Keys') in Redis database

public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder PersistKeysToRedis (this Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder builder, StackExchange.Redis.IConnectionMultiplexer connectionMultiplexer);
static member PersistKeysToRedis : Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder * StackExchange.Redis.IConnectionMultiplexer -> Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder
<Extension()>
Public Function PersistKeysToRedis (builder As IDataProtectionBuilder, connectionMultiplexer As IConnectionMultiplexer) As IDataProtectionBuilder
Parameters
builder
IDataProtectionBuilder IDataProtectionBuilder IDataProtectionBuilder

The builder instance to modify.

connectionMultiplexer
StackExchange.Redis.IConnectionMultiplexer StackExchange.Redis.IConnectionMultiplexer StackExchange.Redis.IConnectionMultiplexer

The StackExchange.Redis.IConnectionMultiplexer for database access.

Returns

A reference to the IDataProtectionBuilder after this operation has completed.

PersistKeysToRedis(IDataProtectionBuilder, IConnectionMultiplexer, RedisKey) PersistKeysToRedis(IDataProtectionBuilder, IConnectionMultiplexer, RedisKey) PersistKeysToRedis(IDataProtectionBuilder, IConnectionMultiplexer, RedisKey)

Configures the data protection system to persist keys to the specified key in Redis database

public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder PersistKeysToRedis (this Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder builder, StackExchange.Redis.IConnectionMultiplexer connectionMultiplexer, StackExchange.Redis.RedisKey key);
static member PersistKeysToRedis : Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder * StackExchange.Redis.IConnectionMultiplexer * StackExchange.Redis.RedisKey -> Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder
<Extension()>
Public Function PersistKeysToRedis (builder As IDataProtectionBuilder, connectionMultiplexer As IConnectionMultiplexer, key As RedisKey) As IDataProtectionBuilder
Parameters
builder
IDataProtectionBuilder IDataProtectionBuilder IDataProtectionBuilder

The builder instance to modify.

connectionMultiplexer
StackExchange.Redis.IConnectionMultiplexer StackExchange.Redis.IConnectionMultiplexer StackExchange.Redis.IConnectionMultiplexer

The StackExchange.Redis.IConnectionMultiplexer for database access.

key
StackExchange.Redis.RedisKey StackExchange.Redis.RedisKey StackExchange.Redis.RedisKey

The StackExchange.Redis.RedisKey used to store key list.

Returns

A reference to the IDataProtectionBuilder after this operation has completed.

PersistKeysToRedis(IDataProtectionBuilder, Func<IDatabase>, RedisKey) PersistKeysToRedis(IDataProtectionBuilder, Func<IDatabase>, RedisKey) PersistKeysToRedis(IDataProtectionBuilder, Func<IDatabase>, RedisKey)

Configures the data protection system to persist keys to specified key in Redis database

public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder PersistKeysToRedis (this Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder builder, Func<StackExchange.Redis.IDatabase> databaseFactory, StackExchange.Redis.RedisKey key);
static member PersistKeysToRedis : Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder * Func<StackExchange.Redis.IDatabase> * StackExchange.Redis.RedisKey -> Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder
<Extension()>
Public Function PersistKeysToRedis (builder As IDataProtectionBuilder, databaseFactory As Func(Of IDatabase), key As RedisKey) As IDataProtectionBuilder
Parameters
builder
IDataProtectionBuilder IDataProtectionBuilder IDataProtectionBuilder

The builder instance to modify.

databaseFactory
Func<StackExchange.Redis.IDatabase>

The delegate used to create StackExchange.Redis.IDatabase instances.

key
StackExchange.Redis.RedisKey StackExchange.Redis.RedisKey StackExchange.Redis.RedisKey

The StackExchange.Redis.RedisKey used to store key list.

Returns

A reference to the IDataProtectionBuilder after this operation has completed.

Applies to