RedisDataProtectionBuilderExtensions.PersistKeysToRedis Method
Definition
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
PersistKeysToRedis(IDataProtectionBuilder, IConnectionMultiplexer) |
Configures the data protection system to persist keys to the default key ('DataProtection-Keys') in Redis database |
PersistKeysToRedis(IDataProtectionBuilder, IConnectionMultiplexer, RedisKey) |
Configures the data protection system to persist keys to the specified key in Redis database |
PersistKeysToRedis(IDataProtectionBuilder, Func<IDatabase>, RedisKey) |
Configures the data protection system to persist keys to specified key in Redis database |
PersistKeysToRedis(IDataProtectionBuilder, IConnectionMultiplexer)
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 ^ PersistKeysToRedis(Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ builder, StackExchange::Redis::IConnectionMultiplexer ^ connectionMultiplexer);
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
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
PersistKeysToRedis(IDataProtectionBuilder, IConnectionMultiplexer, RedisKey)
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 ^ PersistKeysToRedis(Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ builder, StackExchange::Redis::IConnectionMultiplexer ^ connectionMultiplexer, StackExchange::Redis::RedisKey key);
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
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
PersistKeysToRedis(IDataProtectionBuilder, Func<IDatabase>, RedisKey)
Configures the data protection system to persist keys to specified key in Redis database
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ PersistKeysToRedis(Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ builder, Func<StackExchange::Redis::IDatabase ^> ^ databaseFactory, StackExchange::Redis::RedisKey key);
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
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.