forked from redis/jedis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BinaryJedisCommands.java
147 lines (79 loc) · 3.43 KB
/
BinaryJedisCommands.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
143
144
145
146
147
package redis.clients.jedis;
import java.util.Collection;
import java.util.List;
import java.util.Map;
import java.util.Set;
import redis.clients.jedis.BinaryClient.LIST_POSITION;
/**
* Common interface for sharded and non-sharded BinaryJedis
*/
public interface BinaryJedisCommands {
String set(byte[] key, byte[] value);
byte[] get(byte[] key);
Boolean exists(byte[] key);
String type(byte[] key);
Long expire(byte[] key, int seconds);
Long expireAt(byte[] key, long unixTime);
Long ttl(byte[] key);
byte[] getSet(byte[] key, byte[] value);
Long setnx(byte[] key, byte[] value);
String setex(byte[] key, int seconds, byte[] value);
Long decrBy(byte[] key, long integer);
Long decr(byte[] key);
Long incrBy(byte[] key, long integer);
Long incr(byte[] key);
Long append(byte[] key, byte[] value);
byte[] substr(byte[] key, int start, int end);
Long hset(byte[] key, byte[] field, byte[] value);
byte[] hget(byte[] key, byte[] field);
Long hsetnx(byte[] key, byte[] field, byte[] value);
String hmset(byte[] key, Map<byte[], byte[]> hash);
List<byte[]> hmget(byte[] key, byte[]... fields);
Long hincrBy(byte[] key, byte[] field, long value);
Boolean hexists(byte[] key, byte[] field);
Long hdel(byte[] key, byte[] field);
Long hlen(byte[] key);
Set<byte[]> hkeys(byte[] key);
Collection<byte[]> hvals(byte[] key);
Map<byte[], byte[]> hgetAll(byte[] key);
Long rpush(byte[] key, byte[] string);
Long lpush(byte[] key, byte[] string);
Long llen(byte[] key);
List<byte[]> lrange(byte[] key, int start, int end);
String ltrim(byte[] key, int start, int end);
byte[] lindex(byte[] key, int index);
String lset(byte[] key, int index, byte[] value);
Long lrem(byte[] key, int count, byte[] value);
byte[] lpop(byte[] key);
byte[] rpop(byte[] key);
Long sadd(byte[] key, byte[] member);
Set<byte[]> smembers(byte[] key);
Long srem(byte[] key, byte[] member);
byte[] spop(byte[] key);
Long scard(byte[] key);
Boolean sismember(byte[] key, byte[] member);
byte[] srandmember(byte[] key);
Long zadd(byte[] key, double score, byte[] member);
Set<byte[]> zrange(byte[] key, int start, int end);
Long zrem(byte[] key, byte[] member);
Double zincrby(byte[] key, double score, byte[] member);
Long zrank(byte[] key, byte[] member);
Long zrevrank(byte[] key, byte[] member);
Set<byte[]> zrevrange(byte[] key, int start, int end);
Set<Tuple> zrangeWithScores(byte[] key, int start, int end);
Set<Tuple> zrevrangeWithScores(byte[] key, int start, int end);
Long zcard(byte[] key);
Double zscore(byte[] key, byte[] member);
List<byte[]> sort(byte[] key);
List<byte[]> sort(byte[] key, SortingParams sortingParameters);
Long zcount(byte[] key, double min, double max);
Set<byte[]> zrangeByScore(byte[] key, double min, double max);
Set<byte[]> zrangeByScore(byte[] key, double min, double max, int offset,
int count);
Set<Tuple> zrangeByScoreWithScores(byte[] key, double min, double max);
Set<Tuple> zrangeByScoreWithScores(byte[] key, double min, double max,
int offset, int count);
Long zremrangeByRank(byte[] key, int start, int end);
Long zremrangeByScore(byte[] key, double start, double end);
Long linsert(byte[] key, LIST_POSITION where, byte[] pivot, byte[] value);
}