-
Notifications
You must be signed in to change notification settings - Fork 3.9k
/
MultiKeyBinaryRedisPipeline.java
142 lines (85 loc) · 4.55 KB
/
MultiKeyBinaryRedisPipeline.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
package redis.clients.jedis.commands;
import redis.clients.jedis.BitOP;
import redis.clients.jedis.GeoUnit;
import redis.clients.jedis.Response;
import redis.clients.jedis.SortingParams;
import redis.clients.jedis.Tuple;
import redis.clients.jedis.ZParams;
import redis.clients.jedis.args.*;
import redis.clients.jedis.params.*;
import java.util.List;
import java.util.Map;
import java.util.Set;
/**
* Multikey related commands (these are split out because they are non-shardable)
*/
public interface MultiKeyBinaryRedisPipeline {
Response<Boolean> copy(byte[] srcKey, byte[] dstKey, int db, boolean replace);
Response<Boolean> copy(byte[] srcKey, byte[] dstKey, boolean replace);
Response<Long> del(byte[]... keys);
Response<Long> unlink(byte[]... keys);
Response<Long> exists(byte[]... keys);
Response<byte[]> lmove(byte[] srcKey, byte[] dstKey, ListDirection from, ListDirection to);
Response<byte[]> blmove(byte[] srcKey, byte[] dstKey, ListDirection from, ListDirection to, double timeout);
Response<List<byte[]>> blpop(byte[]... args);
Response<List<byte[]>> blpop(double timeout, byte[]... args);
Response<List<byte[]>> brpop(byte[]... args);
Response<List<byte[]>> brpop(double timeout, byte[]... args);
Response<List<byte[]>> bzpopmax(double timeout, byte[]... keys);
Response<List<byte[]>> bzpopmin(double timeout, byte[]... keys);
Response<Set<byte[]>> keys(byte[] pattern);
Response<List<byte[]>> mget(byte[]... keys);
Response<String> mset(byte[]... keysvalues);
Response<Long> msetnx(byte[]... keysvalues);
Response<String> rename(byte[] oldkey, byte[] newkey);
Response<Long> renamenx(byte[] oldkey, byte[] newkey);
Response<byte[]> rpoplpush(byte[] srckey, byte[] dstkey);
Response<Set<byte[]>> sdiff(byte[]... keys);
Response<Long> sdiffstore(byte[] dstkey, byte[]... keys);
Response<Set<byte[]>> sinter(byte[]... keys);
Response<Long> sinterstore(byte[] dstkey, byte[]... keys);
Response<Long> smove(byte[] srckey, byte[] dstkey, byte[] member);
Response<Long> sort(byte[] key, SortingParams sortingParameters, byte[] dstkey);
Response<Long> sort(byte[] key, byte[] dstkey);
Response<Set<byte[]>> sunion(byte[]... keys);
Response<Long> sunionstore(byte[] dstkey, byte[]... keys);
Response<String> unwatch();
Response<Set<byte[]>> zdiff(byte[]... keys);
Response<Set<Tuple>> zdiffWithScores(byte[]... keys);
Response<Long> zdiffStore(byte[] dstkey, byte[]... keys);
Response<Set<byte[]>> zinter(ZParams params, byte[]... keys);
Response<Set<Tuple>> zinterWithScores(ZParams params, byte[]... keys);
Response<Long> zinterstore(byte[] dstkey, byte[]... sets);
Response<Long> zinterstore(byte[] dstkey, ZParams params, byte[]... sets);
Response<Set<byte[]>> zunion(ZParams params, byte[]... keys);
Response<Set<Tuple>> zunionWithScores(ZParams params, byte[]... keys);
Response<Long> zunionstore(byte[] dstkey, byte[]... sets);
Response<Long> zunionstore(byte[] dstkey, ZParams params, byte[]... sets);
Response<byte[]> brpoplpush(byte[] source, byte[] destination, int timeout);
Response<Long> publish(byte[] channel, byte[] message);
Response<byte[]> randomKeyBinary();
Response<Long> bitop(BitOP op, byte[] destKey, byte[]... srcKeys);
Response<String> pfmerge(byte[] destkey, byte[]... sourcekeys);
Response<Long> pfcount(byte[]... keys);
Response<Long> touch(byte[]... keys);
Response<String> migrate(String host, int port, int destinationDB, int timeout,
MigrateParams params, byte[]... keys);
Response<Long> georadiusStore(byte[] key, double longitude, double latitude, double radius,
GeoUnit unit, GeoRadiusParam param, GeoRadiusStoreParam storeParam);
Response<Long> georadiusByMemberStore(byte[] key, byte[] member, double radius, GeoUnit unit,
GeoRadiusParam param, GeoRadiusStoreParam storeParam);
/**
* @deprecated Use {@link #xread(redis.clients.jedis.params.XReadParams, java.util.Map.Entry...)}.
*/
@Deprecated
Response<List<byte[]>> xread(int count, long block, Map<byte[], byte[]> streams);
Response<List<byte[]>> xread(XReadParams xReadParams, Map.Entry<byte[], byte[]>... streams);
/**
* @deprecated Use {@link #xreadGroup(byte..., byte..., redis.clients.jedis.params.XReadGroupParams, java.util.Map.Entry...)}.
*/
@Deprecated
Response<List<byte[]>> xreadGroup(byte[] groupname, byte[] consumer, int count, long block,
boolean noAck, Map<byte[], byte[]> streams);
Response<List<byte[]>> xreadGroup(byte[] groupname, byte[] consumer,
XReadGroupParams xReadGroupParams, Map.Entry<byte[], byte[]>... streams);
}