Microsoft.AspNetCore.DataProtection.StackExchangeRedis 11.0.0-preview.7.26381.103

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 11.0

.NET Framework 4.6.2

.NET Standard 2.0

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