Microsoft.AspNetCore.DataProtection.StackExchangeRedis 10.0.1

About

Microsoft.AspNetCore.DataProtection.StackExchangeRedis allows storing data protection keys in a Redis cache.

[!WARNING] Only Redis versions supporting Redis Data Persistence should be used to store keys. Azure Blob storage is persistent and can be used to store keys. For more information, see this GitHub issue.

How to Use

To use Microsoft.AspNetCore.DataProtection.StackExchangeRedis, follow these steps:

Installation

dotnet add package Microsoft.AspNetCore.DataProtection.StackExchangeRedis

Configuration

To configure data protection key storage on Redis, call one of the PersistKeysToStackExchangeRedis overloads:

var redis = ConnectionMultiplexer.Connect("<URI>");
builder.Services.AddDataProtection()
    .PersistKeysToStackExchangeRedis(redis, "DataProtection-Keys");

Additional Documentation

For additional documentation and examples, refer to the official documentation on the Redis key storage provider.

Feedback & Contributing

Microsoft.AspNetCore.DataProtection.StackExchangeRedis is released as open-source under the MIT license. Bug reports and contributions are welcome at the GitHub repository.

No packages depend on Microsoft.AspNetCore.DataProtection.StackExchangeRedis.

.NET Framework 4.6.2

.NET 10.0

.NET Standard 2.0

Version Downloads Last updated
10.0.1 2 12/10/2025
10.0.0 18 11/12/2025
10.0.0-rc.2.25502.107 29 10/15/2025
10.0.0-rc.1.25451.107 37 09/09/2025
10.0.0-preview.7.25380.108 53 08/14/2025
10.0.0-preview.6.25358.103 49 07/16/2025
10.0.0-preview.5.25277.114 56 06/07/2025
10.0.0-preview.4.25258.110 51 05/17/2025
10.0.0-preview.3.25172.1 67 04/13/2025
10.0.0-preview.2.25164.1 69 04/01/2025
10.0.0-preview.1.25120.3 57 04/01/2025
9.0.11 14 11/12/2025
9.0.10 37 10/15/2025
9.0.9 38 09/09/2025
9.0.8 52 08/05/2025
9.0.7 52 07/09/2025
9.0.6 62 06/12/2025
9.0.5 72 05/18/2025
9.0.4 58 04/10/2025
9.0.3 81 03/25/2025
9.0.2 74 02/16/2025
9.0.1 66 04/02/2025
9.0.0 74 11/14/2024
9.0.0-rc.2.24474.3 76 10/15/2024
9.0.0-rc.1.24452.1 75 09/20/2024
9.0.0-preview.7.24406.2 69 09/01/2024
9.0.0-preview.6.24328.4 70 08/29/2024
9.0.0-preview.5.24306.11 71 08/28/2024
9.0.0-preview.4.24267.6 71 08/28/2024
9.0.0-preview.3.24172.13 75 09/01/2024
9.0.0-preview.2.24128.4 76 09/01/2024
9.0.0-preview.1.24081.5 70 09/01/2024
8.0.22 20 11/12/2025
8.0.21 26 10/15/2025
8.0.20 44 09/09/2025
8.0.19 47 08/05/2025
8.0.18 46 07/09/2025
8.0.17 53 06/12/2025
8.0.16 61 05/16/2025
8.0.15 56 04/10/2025
8.0.14 67 03/30/2025
8.0.13 65 03/29/2025
8.0.12 75 03/30/2025
8.0.11 72 11/14/2024
8.0.10 79 10/14/2024
8.0.8 105 08/21/2024
8.0.7 61 09/01/2024
8.0.6 81 08/29/2024
8.0.5 63 08/28/2024
8.0.4 73 09/01/2024
8.0.3 67 09/01/2024
8.0.2 75 08/29/2024
8.0.1 74 09/01/2024
8.0.0 69 09/12/2024
8.0.0-rc.2.23480.2 80 09/20/2024
8.0.0-rc.1.23421.29 66 08/31/2024
8.0.0-preview.7.23375.9 65 09/01/2024
8.0.0-preview.6.23329.11 79 09/01/2024
8.0.0-preview.5.23302.2 62 08/31/2024
8.0.0-preview.4.23260.4 74 09/01/2024
8.0.0-preview.3.23177.8 64 08/29/2024
8.0.0-preview.2.23153.2 72 09/01/2024
8.0.0-preview.1.23112.2 66 08/28/2024
7.0.20 69 08/29/2024
7.0.19 81 09/01/2024
7.0.18 73 08/29/2024
7.0.17 63 09/01/2024
7.0.16 64 08/29/2024
7.0.15 70 08/28/2024
7.0.14 76 09/01/2024
7.0.13 79 08/29/2024
7.0.12 76 09/01/2024
7.0.11 68 08/31/2024
7.0.10 74 08/28/2024
7.0.9 77 08/28/2024
7.0.8 71 09/01/2024
7.0.7 80 09/01/2024
7.0.5 66 08/29/2024
7.0.4 72 08/31/2024
7.0.3 79 08/29/2024
7.0.2 75 08/31/2024
7.0.1 64 08/31/2024
7.0.0 70 08/31/2024
7.0.0-rc.2.22476.2 75 09/01/2024
7.0.0-rc.1.22427.2 65 09/01/2024
7.0.0-preview.7.22376.6 60 08/29/2024
7.0.0-preview.6.22330.3 66 09/01/2024
7.0.0-preview.5.22303.8 60 09/01/2024
7.0.0-preview.4.22251.1 85 08/29/2024
7.0.0-preview.3.22178.4 66 08/29/2024
7.0.0-preview.2.22153.2 67 08/28/2024
7.0.0-preview.1.22109.13 69 09/01/2024
6.0.36 64 11/14/2024
6.0.35 64 10/15/2024
6.0.33 76 08/28/2024
6.0.32 62 08/29/2024
6.0.31 74 08/29/2024
6.0.30 75 08/29/2024
6.0.29 74 08/28/2024
6.0.28 65 09/01/2024
6.0.27 74 09/01/2024
6.0.26 70 08/28/2024
6.0.25 65 09/20/2024
6.0.24 63 08/31/2024
6.0.23 66 09/01/2024
6.0.22 59 09/01/2024
6.0.21 69 08/28/2024
6.0.20 74 09/01/2024
6.0.19 62 09/01/2024
6.0.18 70 08/29/2024
6.0.16 65 09/01/2024
6.0.15 67 09/01/2024
6.0.14 67 09/01/2024
6.0.13 72 09/01/2024
6.0.12 65 09/01/2024
6.0.11 72 09/01/2024
6.0.10 76 08/29/2024
6.0.9 76 09/02/2024
6.0.8 71 08/29/2024
6.0.7 78 09/20/2024
6.0.6 72 08/28/2024
6.0.5 72 08/31/2024
6.0.4 67 08/31/2024
6.0.3 65 09/01/2024
6.0.2 64 09/01/2024
6.0.1 71 09/01/2024
6.0.0 72 09/01/2024
6.0.0-rc.2.21480.10 72 08/31/2024
6.0.0-rc.1.21452.15 74 08/29/2024
6.0.0-preview.7.21378.6 66 08/29/2024
6.0.0-preview.6.21355.2 64 08/31/2024
6.0.0-preview.5.21301.17 67 09/01/2024
6.0.0-preview.4.21253.5 68 09/12/2024
6.0.0-preview.3.21201.13 71 08/28/2024
6.0.0-preview.2.21154.6 73 08/31/2024
6.0.0-preview.1.21103.6 71 08/28/2024
5.0.17 77 09/01/2024
5.0.16 78 08/28/2024
5.0.15 71 09/01/2024
5.0.14 70 08/28/2024
5.0.13 63 09/01/2024
5.0.12 66 08/29/2024
5.0.11 63 08/29/2024
5.0.10 71 08/28/2024
5.0.9 67 09/01/2024
5.0.8 64 08/28/2024
5.0.7 77 09/01/2024
5.0.6 68 09/01/2024
5.0.5 73 08/29/2024
5.0.4 76 09/01/2024
5.0.3 66 08/28/2024
5.0.2 75 09/01/2024
5.0.1 76 08/29/2024
5.0.0 68 09/12/2024
5.0.0-rc.2.20475.17 75 08/31/2024
5.0.0-rc.1.20451.17 63 09/01/2024
5.0.0-preview.8.20414.8 59 09/20/2024
5.0.0-preview.7.20365.19 63 08/28/2024
5.0.0-preview.6.20312.15 78 08/29/2024
5.0.0-preview.5.20279.2 69 09/01/2024
5.0.0-preview.4.20257.10 62 08/29/2024
5.0.0-preview.3.20215.14 67 08/29/2024
5.0.0-preview.2.20167.3 63 08/28/2024
5.0.0-preview.1.20124.5 72 08/27/2024
3.1.32 66 08/31/2024
3.1.31 71 09/01/2024
3.1.30 70 08/31/2024
3.1.29 71 08/28/2024
3.1.28 71 08/29/2024
3.1.27 76 09/01/2024
3.1.26 74 09/20/2024
3.1.25 64 08/29/2024
3.1.24 64 08/29/2024
3.1.23 72 08/29/2024
3.1.22 64 09/12/2024
3.1.21 65 09/01/2024
3.1.20 72 09/01/2024
3.1.19 79 08/28/2024
3.1.18 74 09/20/2024
3.1.17 78 09/13/2024
3.1.16 67 08/29/2024
3.1.15 69 08/31/2024
3.1.14 71 09/20/2024
3.1.13 63 08/28/2024
3.1.12 68 09/01/2024
3.1.11 73 09/01/2024
3.1.10 60 09/01/2024
3.1.9 81 09/01/2024
3.1.8 68 09/01/2024
3.1.7 71 08/28/2024
3.1.6 62 08/29/2024
3.1.5 73 08/28/2024
3.1.4 63 08/28/2024
3.1.3 69 08/29/2024
3.1.2 76 09/01/2024
3.1.1 77 09/01/2024
3.1.0 71 08/31/2024
3.1.0-preview3.19555.2 72 08/31/2024
3.1.0-preview2.19528.8 65 08/27/2024
3.1.0-preview1.19508.20 82 08/31/2024
3.0.3 63 09/01/2024
3.0.2 73 08/29/2024
3.0.0 75 09/01/2024
3.0.0-rc1.19457.4 63 09/01/2024
3.0.0-preview9.19424.4 65 08/28/2024
3.0.0-preview8.19405.7 64 09/01/2024
3.0.0-preview7.19365.7 62 08/28/2024
3.0.0-preview6.19307.2 58 08/29/2024
3.0.0-preview5-19227-01 75 09/01/2024
3.0.0-preview4-19216-03 69 09/01/2024
3.0.0-preview3-19153-02 72 08/31/2024
3.0.0-preview-19075-0444 69 09/13/2024
3.0.0-preview-18579-0056 65 08/29/2024
2.2.5 75 08/29/2024
2.2.0 66 08/29/2024
2.2.0-preview3-35497 68 09/01/2024