Skip to content

Commit 0414370

Browse files
authored
fix: supporting redis clusters
Fix for supporting redis clusters close: #39
2 parents 5aa62d4 + e7c56cc commit 0414370

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Aguacongas.AspNetCore.Authentication.Redis/DynamicProviderStore.cs

+4-4
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ public class DynamicProviderStore<TSchemeDefinition> : IDynamicProviderStore<TSc
3838
/// <summary>
3939
/// The store key
4040
/// </summary>
41-
public const string StoreKey = "schemes";
41+
public const string StoreKey = "{schemes}";
4242
/// <summary>
4343
/// The concurency key
4444
/// </summary>
45-
public const string ConcurencyKey = "schemes-concurency";
45+
public const string ConcurencyKey = "{schemes}-concurency";
4646

4747
private readonly IDatabase _db;
4848
private readonly ISchemeDefinitionSerializer<TSchemeDefinition> _authenticationSchemeOptionsSerializer;
@@ -98,8 +98,8 @@ public virtual async Task AddAsync(TSchemeDefinition definition, CancellationTok
9898
var tran = _db.CreateTransaction();
9999
_ = tran.AddCondition(Condition.HashNotExists(StoreKey, definition.Scheme));
100100
#pragma warning disable CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed
101-
tran.HashSetAsync(StoreKey,
102-
definition.Scheme,
101+
tran.HashSetAsync(StoreKey,
102+
definition.Scheme,
103103
_authenticationSchemeOptionsSerializer.Serialize(definition));
104104
tran.HashSetAsync(ConcurencyKey, definition.Scheme, 0);
105105
#pragma warning restore CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed

0 commit comments

Comments
 (0)