Skip to content

Commit

Permalink
Update default Redis version from 4.0.0 to 6.0.0 for Azure Redis (#2810)
Browse files Browse the repository at this point in the history
* Update default Redis version from 4.0.0 to 6.0.0 for Azure Redis resources
  • Loading branch information
philon-msft authored Nov 5, 2024
1 parent c8a7265 commit ebacf39
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/ReleaseNotes.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions src/StackExchange.Redis/Configuration/AzureOptionsProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ public class AzureOptionsProvider : DefaultOptionsProvider
public override bool AbortOnConnectFail => false;

/// <summary>
/// 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.
/// </summary>
public override Version DefaultVersion => RedisFeatures.v4_0_0;
public override Version DefaultVersion => RedisFeatures.v6_0_0;

/// <summary>
/// List of domains known to be Azure Redis, so we can light up some helpful functionality
Expand Down
2 changes: 1 addition & 1 deletion tests/StackExchange.Redis.Tests/ConfigTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit ebacf39

Please sign in to comment.