Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

StackExchangeRedisDataProtectionBuilderExtensions.PersistKeysToStackExchangeRedis Method

Definition

Namespace:
Microsoft.AspNetCore.DataProtection
Assembly:
Microsoft.AspNetCore.DataProtection.StackExchangeRedis.dll
Package:
Microsoft.AspNetCore.DataProtection.StackExchangeRedis v10.0.0
Package:
Microsoft.AspNetCore.DataProtection.StackExchangeRedis v11.0.0-preview.4.26230.115
Package:
Microsoft.AspNetCore.DataProtection.StackExchangeRedis v2.2.0
Package:
Microsoft.AspNetCore.DataProtection.StackExchangeRedis v3.0.3
Package:
Microsoft.AspNetCore.DataProtection.StackExchangeRedis v3.1.18
Package:
Microsoft.AspNetCore.DataProtection.StackExchangeRedis v5.0.9
Package:
Microsoft.AspNetCore.DataProtection.StackExchangeRedis v6.0.6
Package:
Microsoft.AspNetCore.DataProtection.StackExchangeRedis v7.0.5
Package:
Microsoft.AspNetCore.DataProtection.StackExchangeRedis v8.0.19
Package:
Microsoft.AspNetCore.DataProtection.StackExchangeRedis v9.0.8

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.

Overloads

Name Description
PersistKeysToStackExchangeRedis(IDataProtectionBuilder, IConnectionMultiplexer)

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

PersistKeysToStackExchangeRedis(IDataProtectionBuilder, IConnectionMultiplexer, RedisKey)

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

PersistKeysToStackExchangeRedis(IDataProtectionBuilder, Func<IDatabase>, RedisKey)

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

PersistKeysToStackExchangeRedis(IDataProtectionBuilder, IConnectionMultiplexer)

Source:
RedisDataProtectionBuilderExtensions.cs
Source:
RedisDataProtectionBuilderExtensions.cs
Source:
RedisDataProtectionBuilderExtensions.cs
Source:
RedisDataProtectionBuilderExtensions.cs
Source:
RedisDataProtectionBuilderExtensions.cs
Source:
RedisDataProtectionBuilderExtensions.cs
Source:
RedisDataProtectionBuilderExtensions.cs
Source:
RedisDataProtectionBuilderExtensions.cs
Source:
RedisDataProtectionBuilderExtensions.cs

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

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ PersistKeysToStackExchangeRedis(Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ builder, StackExchange::Redis::IConnectionMultiplexer ^ connectionMultiplexer);
public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder PersistKeysToStackExchangeRedis(this Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder builder, StackExchange.Redis.IConnectionMultiplexer connectionMultiplexer);
static member PersistKeysToStackExchangeRedis : Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder * StackExchange.Redis.IConnectionMultiplexer -> Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder
<Extension()>
Public Function PersistKeysToStackExchangeRedis (builder As IDataProtectionBuilder, connectionMultiplexer As IConnectionMultiplexer) As IDataProtectionBuilder

Parameters

builder
IDataProtectionBuilder

The builder instance to modify.

connectionMultiplexer
StackExchange.Redis.IConnectionMultiplexer

The StackExchange.Redis.IConnectionMultiplexer for database access.

Returns

A reference to the IDataProtectionBuilder after this operation has completed.

Applies to

PersistKeysToStackExchangeRedis(IDataProtectionBuilder, IConnectionMultiplexer, RedisKey)

Source:
RedisDataProtectionBuilderExtensions.cs
Source:
RedisDataProtectionBuilderExtensions.cs
Source:
RedisDataProtectionBuilderExtensions.cs
Source:
RedisDataProtectionBuilderExtensions.cs
Source:
RedisDataProtectionBuilderExtensions.cs
Source:
RedisDataProtectionBuilderExtensions.cs
Source:
RedisDataProtectionBuilderExtensions.cs
Source:
RedisDataProtectionBuilderExtensions.cs
Source:
RedisDataProtectionBuilderExtensions.cs

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

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ PersistKeysToStackExchangeRedis(Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ builder, StackExchange::Redis::IConnectionMultiplexer ^ connectionMultiplexer, StackExchange::Redis::RedisKey key);
public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder PersistKeysToStackExchangeRedis(this Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder builder, StackExchange.Redis.IConnectionMultiplexer connectionMultiplexer, StackExchange.Redis.RedisKey key);
static member PersistKeysToStackExchangeRedis : Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder * StackExchange.Redis.IConnectionMultiplexer * StackExchange.Redis.RedisKey -> Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder
<Extension()>
Public Function PersistKeysToStackExchangeRedis (builder As IDataProtectionBuilder, connectionMultiplexer As IConnectionMultiplexer, key As RedisKey) As IDataProtectionBuilder

Parameters

builder
IDataProtectionBuilder

The builder instance to modify.

connectionMultiplexer
StackExchange.Redis.IConnectionMultiplexer

The StackExchange.Redis.IConnectionMultiplexer for database access.

key
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

PersistKeysToStackExchangeRedis(IDataProtectionBuilder, Func<IDatabase>, RedisKey)

Source:
RedisDataProtectionBuilderExtensions.cs
Source:
RedisDataProtectionBuilderExtensions.cs
Source:
RedisDataProtectionBuilderExtensions.cs
Source:
RedisDataProtectionBuilderExtensions.cs
Source:
RedisDataProtectionBuilderExtensions.cs
Source:
RedisDataProtectionBuilderExtensions.cs
Source:
RedisDataProtectionBuilderExtensions.cs
Source:
RedisDataProtectionBuilderExtensions.cs
Source:
RedisDataProtectionBuilderExtensions.cs

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

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ PersistKeysToStackExchangeRedis(Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ builder, Func<StackExchange::Redis::IDatabase ^> ^ databaseFactory, StackExchange::Redis::RedisKey key);
public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder PersistKeysToStackExchangeRedis(this Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder builder, Func<StackExchange.Redis.IDatabase> databaseFactory, StackExchange.Redis.RedisKey key);
static member PersistKeysToStackExchangeRedis : Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder * Func<StackExchange.Redis.IDatabase> * StackExchange.Redis.RedisKey -> Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder
<Extension()>
Public Function PersistKeysToStackExchangeRedis (builder As IDataProtectionBuilder, databaseFactory As Func(Of IDatabase), key As RedisKey) As IDataProtectionBuilder

Parameters

builder
IDataProtectionBuilder

The builder instance to modify.

databaseFactory
Func<StackExchange.Redis.IDatabase>

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

key
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


Feedback

Was this page helpful?