2
using System.Collections.Generic;
4
namespace ServiceStack.Redis.Generic
7
/// interface to queueable operation using typed redis client
9
/// <typeparam name="T"></typeparam>
10
public interface IRedisTypedQueueableOperation<T>
12
void QueueCommand(Action<IRedisTypedClient<T>> command);
13
void QueueCommand(Action<IRedisTypedClient<T>> command, Action onSuccessCallback);
14
void QueueCommand(Action<IRedisTypedClient<T>> command, Action onSuccessCallback, Action<Exception> onErrorCallback);
16
void QueueCommand(Func<IRedisTypedClient<T>, int> command);
17
void QueueCommand(Func<IRedisTypedClient<T>, int> command, Action<int> onSuccessCallback);
18
void QueueCommand(Func<IRedisTypedClient<T>, int> command, Action<int> onSuccessCallback, Action<Exception> onErrorCallback);
20
void QueueCommand(Func<IRedisTypedClient<T>, long> command);
21
void QueueCommand(Func<IRedisTypedClient<T>, long> command, Action<long> onSuccessCallback);
22
void QueueCommand(Func<IRedisTypedClient<T>, long> command, Action<long> onSuccessCallback, Action<Exception> onErrorCallback);
24
void QueueCommand(Func<IRedisTypedClient<T>, bool> command);
25
void QueueCommand(Func<IRedisTypedClient<T>, bool> command, Action<bool> onSuccessCallback);
26
void QueueCommand(Func<IRedisTypedClient<T>, bool> command, Action<bool> onSuccessCallback, Action<Exception> onErrorCallback);
28
void QueueCommand(Func<IRedisTypedClient<T>, double> command);
29
void QueueCommand(Func<IRedisTypedClient<T>, double> command, Action<double> onSuccessCallback);
30
void QueueCommand(Func<IRedisTypedClient<T>, double> command, Action<double> onSuccessCallback, Action<Exception> onErrorCallback);
32
void QueueCommand(Func<IRedisTypedClient<T>, byte[]> command);
33
void QueueCommand(Func<IRedisTypedClient<T>, byte[]> command, Action<byte[]> onSuccessCallback);
34
void QueueCommand(Func<IRedisTypedClient<T>, byte[]> command, Action<byte[]> onSuccessCallback, Action<Exception> onErrorCallback);
36
void QueueCommand(Func<IRedisTypedClient<T>, string> command);
37
void QueueCommand(Func<IRedisTypedClient<T>, string> command, Action<string> onSuccessCallback);
38
void QueueCommand(Func<IRedisTypedClient<T>, string> command, Action<string> onSuccessCallback, Action<Exception> onErrorCallback);
40
void QueueCommand(Func<IRedisTypedClient<T>, T> command);
41
void QueueCommand(Func<IRedisTypedClient<T>, T> command, Action<T> onSuccessCallback);
42
void QueueCommand(Func<IRedisTypedClient<T>, T> command, Action<T> onSuccessCallback, Action<Exception> onErrorCallback);
44
void QueueCommand(Func<IRedisTypedClient<T>, List<string>> command);
45
void QueueCommand(Func<IRedisTypedClient<T>, List<string>> command, Action<List<string>> onSuccessCallback);
46
void QueueCommand(Func<IRedisTypedClient<T>, List<string>> command, Action<List<string>> onSuccessCallback, Action<Exception> onErrorCallback);
48
void QueueCommand(Func<IRedisTypedClient<T>, List<T>> command);
49
void QueueCommand(Func<IRedisTypedClient<T>, List<T>> command, Action<List<T>> onSuccessCallback);
50
void QueueCommand(Func<IRedisTypedClient<T>, List<T>> command, Action<List<T>> onSuccessCallback, Action<Exception> onErrorCallback);