Skip to content

Commit 371c3f4

Browse files
committed
add to features; fixup shipped etc
1 parent ff38f12 commit 371c3f4

4 files changed

Lines changed: 11 additions & 8 deletions

File tree

src/StackExchange.Redis/PublicAPI/PublicAPI.Shipped.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1848,4 +1848,8 @@ static StackExchange.Redis.RedisResult.Create(StackExchange.Redis.RedisValue[]!
18481848
virtual StackExchange.Redis.RedisResult.Length.get -> int
18491849
virtual StackExchange.Redis.RedisResult.this[int index].get -> StackExchange.Redis.RedisResult!
18501850
StackExchange.Redis.ConnectionMultiplexer.AddLibraryNameSuffix(string! suffix) -> void
1851-
StackExchange.Redis.IConnectionMultiplexer.AddLibraryNameSuffix(string! suffix) -> void
1851+
StackExchange.Redis.IConnectionMultiplexer.AddLibraryNameSuffix(string! suffix) -> void
1852+
StackExchange.Redis.RedisFeatures.ShardedPubSub.get -> bool
1853+
static StackExchange.Redis.RedisChannel.Sharded(byte[]? value) -> StackExchange.Redis.RedisChannel
1854+
static StackExchange.Redis.RedisChannel.Sharded(string! value) -> StackExchange.Redis.RedisChannel
1855+
StackExchange.Redis.ClientInfo.ShardedSubscriptionCount.get -> int
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
StackExchange.Redis.RedisChannel.PatternMode.Sharded = 4 -> StackExchange.Redis.RedisChannel.PatternMode
2-
static StackExchange.Redis.RedisChannel.Sharded(byte[]? value) -> StackExchange.Redis.RedisChannel
3-
static StackExchange.Redis.RedisChannel.Sharded(string! value) -> StackExchange.Redis.RedisChannel
1+


src/StackExchange.Redis/RedisChannel.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -248,10 +248,6 @@ public enum PatternMode
248248
/// Always a pattern.
249249
/// </summary>
250250
Pattern = 2,
251-
/// <summary>
252-
/// Never a pattern.
253-
/// </summary>
254-
Sharded = 4, // treat as flags here
255251
}
256252

257253
/// <summary>

src/StackExchange.Redis/RedisFeatures.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,11 @@ public RedisFeatures(Version version)
178178
/// </summary>
179179
public bool SetVaradicAddRemove => Version.IsAtLeast(v2_4_0);
180180

181+
/// <summary>
182+
/// Are <see href="https://redis.io/commands/ssubscribe/">SSUBSCRIBE</see> and <see href="https://redis.io/commands/spublish/">SPUBLISH</see> available?
183+
/// </summary>
184+
public bool ShardedPubSub => Version.IsAtLeast(v7_0_0_rc1);
185+
181186
/// <summary>
182187
/// Are <see href="https://redis.io/commands/zpopmin/">ZPOPMIN</see> and <see href="https://redis.io/commands/zpopmax/">ZPOPMAX</see> available?
183188
/// </summary>

0 commit comments

Comments
 (0)