You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Packages: update to remove CVE dependencies (#2820)
* Packages: update to remove CVE dependencies
This bumps *testing* (not the core package) to net8.0 for an easier time maintaining and updates packages outside StackExchange.Redis except for `Microsoft.Bcl.AsyncInterfaces`. `Microsoft.Bcl.AsyncInterfaces` was bumped from 5.0.0 to 6.0.0 due to deprecation warnings, still maintaining widest compatibility we can.
* Fix .NET Framework test diff
* fix enum flags rendering; involves adding a net8.0 TFM, but that's LTS *anyway*, so: fine
also added appropriate [Obsolete] to respect transient net8.0 changes
---------
Co-authored-by: Marc Gravell <marc.gravell@gmail.com>
Copy file name to clipboardExpand all lines: src/StackExchange.Redis/Enums/CommandFlags.cs
+23Lines changed: 23 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -34,36 +34,59 @@ public enum CommandFlags
34
34
/// </summary>
35
35
PreferMaster=0,
36
36
37
+
#if NET8_0_OR_GREATER
38
+
/// <summary>
39
+
/// This operation should be performed on the replica if it is available, but will be performed on
40
+
/// a primary if no replicas are available. Suitable for read operations only.
41
+
/// </summary>
42
+
[Obsolete("Starting with Redis version 5, Redis has moved to 'replica' terminology. Please use "+nameof(PreferReplica)+" instead, this will be removed in 3.0.")]
/// This operation should only be performed on the primary.
39
49
/// </summary>
40
50
DemandMaster =4,
41
51
52
+
#if !NET8_0_OR_GREATER
42
53
/// <summary>
43
54
/// This operation should be performed on the replica if it is available, but will be performed on
44
55
/// a primary if no replicas are available. Suitable for read operations only.
45
56
/// </summary>
46
57
[Obsolete("Starting with Redis version 5, Redis has moved to 'replica' terminology. Please use "+nameof(PreferReplica)+" instead, this will be removed in 3.0.")]
/// This operation should be performed on the replica if it is available, but will be performed on
52
64
/// a primary if no replicas are available. Suitable for read operations only.
53
65
/// </summary>
54
66
PreferReplica =8,// note: we're using a 2-bit set here, which [Flags] formatting hates; position is doing the best we can for reasonable outcomes here
55
67
68
+
#if NET8_0_OR_GREATER
69
+
/// <summary>
70
+
/// This operation should only be performed on a replica. Suitable for read operations only.
71
+
/// </summary>
72
+
[Obsolete("Starting with Redis version 5, Redis has moved to 'replica' terminology. Please use "+nameof(DemandReplica)+" instead, this will be removed in 3.0.")]
/// This operation should only be performed on a replica. Suitable for read operations only.
58
79
/// </summary>
59
80
DemandReplica =12,// note: we're using a 2-bit set here, which [Flags] formatting hates; position is doing the best we can for reasonable outcomes here
60
81
82
+
#if !NET8_0_OR_GREATER
61
83
/// <summary>
62
84
/// This operation should only be performed on a replica. Suitable for read operations only.
63
85
/// </summary>
64
86
[Obsolete("Starting with Redis version 5, Redis has moved to 'replica' terminology. Please use "+nameof(DemandReplica)+" instead, this will be removed in 3.0.")]
publicconststringLegacyFormatterImplMessage="This API supports obsolete formatter-based serialization. It should not be called or extended by application code.";
0 commit comments