diff --git a/docs/ReleaseNotes.md b/docs/ReleaseNotes.md index 5ed2d6cfa..f6e274254 100644 --- a/docs/ReleaseNotes.md +++ b/docs/ReleaseNotes.md @@ -8,7 +8,7 @@ Current package versions: ## Unreleased -No pending unreleased changes. +- Update default Redis version from 4.0.0 to 6.0.0 for Azure Redis resources ([#2810 by philon-msft](https://github.com/StackExchange/StackExchange.Redis/pull/2810)) ## 2.8.16 diff --git a/src/StackExchange.Redis/Configuration/AzureOptionsProvider.cs b/src/StackExchange.Redis/Configuration/AzureOptionsProvider.cs index 6e38e15a9..dcdb9f26a 100644 --- a/src/StackExchange.Redis/Configuration/AzureOptionsProvider.cs +++ b/src/StackExchange.Redis/Configuration/AzureOptionsProvider.cs @@ -16,9 +16,9 @@ public class AzureOptionsProvider : DefaultOptionsProvider public override bool AbortOnConnectFail => false; /// - /// The minimum version of Redis in Azure is 4, so use the widest set of available commands when connecting. + /// The minimum version of Redis in Azure is 6, so use the widest set of available commands when connecting. /// - public override Version DefaultVersion => RedisFeatures.v4_0_0; + public override Version DefaultVersion => RedisFeatures.v6_0_0; /// /// List of domains known to be Azure Redis, so we can light up some helpful functionality diff --git a/tests/StackExchange.Redis.Tests/ConfigTests.cs b/tests/StackExchange.Redis.Tests/ConfigTests.cs index 2a4b2bc75..75f6d25f4 100644 --- a/tests/StackExchange.Redis.Tests/ConfigTests.cs +++ b/tests/StackExchange.Redis.Tests/ConfigTests.cs @@ -25,7 +25,7 @@ public class ConfigTests : TestBase public ConfigTests(ITestOutputHelper output, SharedConnectionFixture fixture) : base(output, fixture) { } public Version DefaultVersion = new(3, 0, 0); - public Version DefaultAzureVersion = new(4, 0, 0); + public Version DefaultAzureVersion = new(6, 0, 0); [Fact] public void ExpectedFields()