Microsoft.AspNetCore.DataProtection.StackExchangeRedis 10.0.2

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