Microsoft.AspNetCore.DataProtection.StackExchangeRedis 10.0.8

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