Skip to content

Commit

Permalink
- rem SMIsMember <T>
Browse files Browse the repository at this point in the history
  • Loading branch information
2881099 committed Aug 24, 2023
1 parent a8ec958 commit 53b5822
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/FreeRedis/IRedisClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public interface IRedisClient
bool SIsMember<T>(string key, T member);
string[] SMembers(string key);
T[] SMembers<T>(string key);
bool[] SMIsMember<T>(string key, params object[] members);
bool[] SMIsMember(string key, params object[] members);
bool SMove<T>(string source, string destination, T member);
string SPop(string key);
T SPop<T>(string key);
Expand Down Expand Up @@ -491,7 +491,7 @@ public interface IRedisClient
Task<bool> SIsMemberAsync<T>(string key, T member);
Task<string[]> SMembersAsync(string key);
Task<T[]> SMembersAsync<T>(string key);
Task<bool[]> SMIsMemberAsync<T>(string key, params object[] members);
Task<bool[]> SMIsMemberAsync(string key, params object[] members);
Task<bool> SMoveAsync<T>(string source, string destination, T member);
Task<string> SPopAsync(string key);
Task<T> SPopAsync<T>(string key);
Expand Down
4 changes: 2 additions & 2 deletions src/FreeRedis/RedisClient/Sets.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ partial class RedisClient
public Task<bool> SIsMemberAsync<T>(string key, T member) => CallAsync("SISMEMBER".InputKey(key).InputRaw(SerializeRedisValue(member)), rt => rt.ThrowOrValue<bool>());
public Task<string[]> SMembersAsync(string key) => CallAsync("SMEMBERS".InputKey(key), rt => rt.ThrowOrValue<string[]>());
public Task<T[]> SMembersAsync<T>(string key) => SReadArrayAsync<T>("SMEMBERS".InputKey(key));
public Task<bool[]> SMIsMemberAsync<T>(string key, params object[] members) => CallAsync("SMISMEMBER".InputKey(key).Input(members.Select(a => SerializeRedisValue(a)).ToArray()), rt => rt.ThrowOrValue<bool[]>());
public Task<bool[]> SMIsMemberAsync(string key, params object[] members) => CallAsync("SMISMEMBER".InputKey(key).Input(members.Select(a => SerializeRedisValue(a)).ToArray()), rt => rt.ThrowOrValue<bool[]>());

public Task<bool> SMoveAsync<T>(string source, string destination, T member) => CallAsync("SMOVE"
.InputKey(source)
Expand Down Expand Up @@ -70,7 +70,7 @@ Task<T[]> SReadArrayAsync<T>(CommandPacket cb) => CallAsync(cb.FlagReadbytes(tru
public bool SIsMember<T>(string key, T member) => Call("SISMEMBER".InputKey(key).InputRaw(SerializeRedisValue(member)), rt => rt.ThrowOrValue<bool>());
public string[] SMembers(string key) => Call("SMEMBERS".InputKey(key), rt => rt.ThrowOrValue<string[]>());
public T[] SMembers<T>(string key) => SReadArray<T>("SMEMBERS".InputKey(key));
public bool[] SMIsMember<T>(string key, params object[] members) => Call("SMISMEMBER".InputKey(key).Input(members.Select(a => SerializeRedisValue(a)).ToArray()), rt => rt.ThrowOrValue<bool[]>());
public bool[] SMIsMember(string key, params object[] members) => Call("SMISMEMBER".InputKey(key).Input(members.Select(a => SerializeRedisValue(a)).ToArray()), rt => rt.ThrowOrValue<bool[]>());

public bool SMove<T>(string source, string destination, T member) => Call("SMOVE"
.InputKey(source)
Expand Down

0 comments on commit 53b5822

Please sign in to comment.