Microsoft.AspNetCore.DataProtection.StackExchangeRedis 10.0.6

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