Skip to content

Commit ddafdd3

Browse files
committed
Add support for HashSet API's in Redis Transactions
1 parent 023bd83 commit ddafdd3

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

lib/ServiceStack.Interfaces.dll

512 Bytes
Binary file not shown.

src/ServiceStack.Interfaces/Redis/Generic/IRedisTypedQueueableOperation.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ public interface IRedisTypedQueueableOperation<T>
4545
void QueueCommand(Func<IRedisTypedClient<T>, List<string>> command, Action<List<string>> onSuccessCallback);
4646
void QueueCommand(Func<IRedisTypedClient<T>, List<string>> command, Action<List<string>> onSuccessCallback, Action<Exception> onErrorCallback);
4747

48+
void QueueCommand(Func<IRedisTypedClient<T>, HashSet<string>> command);
49+
void QueueCommand(Func<IRedisTypedClient<T>, HashSet<string>> command, Action<HashSet<string>> onSuccessCallback);
50+
void QueueCommand(Func<IRedisTypedClient<T>, HashSet<string>> command, Action<HashSet<string>> onSuccessCallback, Action<Exception> onErrorCallback);
51+
4852
void QueueCommand(Func<IRedisTypedClient<T>, List<T>> command);
4953
void QueueCommand(Func<IRedisTypedClient<T>, List<T>> command, Action<List<T>> onSuccessCallback);
5054
void QueueCommand(Func<IRedisTypedClient<T>, List<T>> command, Action<List<T>> onSuccessCallback, Action<Exception> onErrorCallback);

src/ServiceStack.Interfaces/Redis/Pipeline/IRedisQueueableOperation.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ public interface IRedisQueueableOperation
4444
void QueueCommand(Func<IRedisClient, List<string>> command, Action<List<string>> onSuccessCallback);
4545
void QueueCommand(Func<IRedisClient, List<string>> command, Action<List<string>> onSuccessCallback, Action<Exception> onErrorCallback);
4646

47+
void QueueCommand(Func<IRedisClient, HashSet<string>> command);
48+
void QueueCommand(Func<IRedisClient, HashSet<string>> command, Action<HashSet<string>> onSuccessCallback);
49+
void QueueCommand(Func<IRedisClient, HashSet<string>> command, Action<HashSet<string>> onSuccessCallback, Action<Exception> onErrorCallback);
50+
4751
void QueueCommand(Func<IRedisClient, Dictionary<string,string>> command);
4852
void QueueCommand(Func<IRedisClient, Dictionary<string,string>> command, Action<Dictionary<string,string>> onSuccessCallback);
4953
void QueueCommand(Func<IRedisClient, Dictionary<string,string>> command, Action<Dictionary<string,string>> onSuccessCallback, Action<Exception> onErrorCallback);

0 commit comments

Comments
 (0)