public class BinaryShardedJedis extends Sharded<Jedis,JedisShardInfo> implements BinaryJedisCommands
DEFAULT_KEY_TAG_PATTERN, DEFAULT_WEIGHT| Constructor and Description |
|---|
BinaryShardedJedis(List<JedisShardInfo> shards) |
BinaryShardedJedis(List<JedisShardInfo> shards,
Hashing algo) |
BinaryShardedJedis(List<JedisShardInfo> shards,
Hashing algo,
Pattern keyTagPattern) |
BinaryShardedJedis(List<JedisShardInfo> shards,
Pattern keyTagPattern) |
| Modifier and Type | Method and Description |
|---|---|
Long |
append(byte[] key,
byte[] value) |
Long |
bitcount(byte[] key) |
Long |
bitcount(byte[] key,
long start,
long end) |
List<byte[]> |
blpop(byte[] arg) |
List<byte[]> |
brpop(byte[] arg) |
Long |
decr(byte[] key) |
Long |
decrBy(byte[] key,
long integer) |
Long |
del(byte[] key) |
void |
disconnect() |
byte[] |
echo(byte[] arg) |
Boolean |
exists(byte[] key) |
Long |
expire(byte[] key,
int seconds) |
Long |
expireAt(byte[] key,
long unixTime) |
byte[] |
get(byte[] key) |
Boolean |
getbit(byte[] key,
long offset) |
byte[] |
getrange(byte[] key,
long startOffset,
long endOffset) |
byte[] |
getSet(byte[] key,
byte[] value) |
Long |
hdel(byte[] key,
byte[]... fields) |
Boolean |
hexists(byte[] key,
byte[] field) |
byte[] |
hget(byte[] key,
byte[] field) |
Map<byte[],byte[]> |
hgetAll(byte[] key) |
Long |
hincrBy(byte[] key,
byte[] field,
long value) |
Double |
hincrByFloat(byte[] key,
byte[] field,
double value) |
Set<byte[]> |
hkeys(byte[] key) |
Long |
hlen(byte[] key) |
List<byte[]> |
hmget(byte[] key,
byte[]... fields) |
String |
hmset(byte[] key,
Map<byte[],byte[]> hash) |
Long |
hset(byte[] key,
byte[] field,
byte[] value) |
Long |
hsetnx(byte[] key,
byte[] field,
byte[] value) |
Collection<byte[]> |
hvals(byte[] key) |
Long |
incr(byte[] key) |
Long |
incrBy(byte[] key,
long integer) |
Double |
incrByFloat(byte[] key,
double integer) |
byte[] |
lindex(byte[] key,
long index) |
Long |
linsert(byte[] key,
BinaryClient.LIST_POSITION where,
byte[] pivot,
byte[] value) |
Long |
llen(byte[] key) |
byte[] |
lpop(byte[] key) |
Long |
lpush(byte[] key,
byte[]... strings) |
Long |
lpushx(byte[] key,
byte[]... string) |
List<byte[]> |
lrange(byte[] key,
long start,
long end) |
Long |
lrem(byte[] key,
long count,
byte[] value) |
String |
lset(byte[] key,
long index,
byte[] value) |
String |
ltrim(byte[] key,
long start,
long end) |
Long |
move(byte[] key,
int dbIndex) |
byte[] |
objectEncoding(byte[] key) |
Long |
objectIdletime(byte[] key) |
Long |
objectRefcount(byte[] key) |
Long |
persist(byte[] key) |
Long |
pfadd(byte[] key,
byte[]... elements) |
long |
pfcount(byte[] key) |
ShardedJedisPipeline |
pipelined() |
byte[] |
rpop(byte[] key) |
Long |
rpush(byte[] key,
byte[]... strings) |
Long |
rpushx(byte[] key,
byte[]... string) |
Long |
sadd(byte[] key,
byte[]... members) |
Long |
scard(byte[] key) |
String |
set(byte[] key,
byte[] value) |
String |
set(byte[] key,
byte[] value,
byte[] nxxx,
byte[] expx,
long time) |
Boolean |
setbit(byte[] key,
long offset,
boolean value) |
Boolean |
setbit(byte[] key,
long offset,
byte[] value) |
String |
setex(byte[] key,
int seconds,
byte[] value) |
Long |
setnx(byte[] key,
byte[] value) |
Long |
setrange(byte[] key,
long offset,
byte[] value) |
Boolean |
sismember(byte[] key,
byte[] member) |
Set<byte[]> |
smembers(byte[] key) |
List<byte[]> |
sort(byte[] key) |
List<byte[]> |
sort(byte[] key,
SortingParams sortingParameters) |
byte[] |
spop(byte[] key) |
byte[] |
srandmember(byte[] key) |
List |
srandmember(byte[] key,
int count) |
Long |
srem(byte[] key,
byte[]... members) |
Long |
strlen(byte[] key) |
byte[] |
substr(byte[] key,
int start,
int end) |
Long |
ttl(byte[] key) |
String |
type(byte[] key) |
Long |
zadd(byte[] key,
double score,
byte[] member) |
Long |
zadd(byte[] key,
Map<byte[],Double> scoreMembers) |
Long |
zcard(byte[] key) |
Long |
zcount(byte[] key,
byte[] min,
byte[] max) |
Long |
zcount(byte[] key,
double min,
double max) |
Double |
zincrby(byte[] key,
double score,
byte[] member) |
Long |
zlexcount(byte[] key,
byte[] min,
byte[] max) |
Set<byte[]> |
zrange(byte[] key,
long start,
long end) |
Set<byte[]> |
zrangeByLex(byte[] key,
byte[] min,
byte[] max) |
Set<byte[]> |
zrangeByLex(byte[] key,
byte[] min,
byte[] max,
int offset,
int count) |
Set<byte[]> |
zrangeByScore(byte[] key,
byte[] min,
byte[] max) |
Set<byte[]> |
zrangeByScore(byte[] key,
byte[] min,
byte[] max,
int offset,
int count) |
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,
byte[] min,
byte[] max) |
Set<Tuple> |
zrangeByScoreWithScores(byte[] key,
byte[] min,
byte[] 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) |
Set<Tuple> |
zrangeWithScores(byte[] key,
long start,
long end) |
Long |
zrank(byte[] key,
byte[] member) |
Long |
zrem(byte[] key,
byte[]... members) |
Long |
zremrangeByLex(byte[] key,
byte[] min,
byte[] max) |
Long |
zremrangeByRank(byte[] key,
long start,
long end) |
Long |
zremrangeByScore(byte[] key,
byte[] start,
byte[] end) |
Long |
zremrangeByScore(byte[] key,
double start,
double end) |
Set<byte[]> |
zrevrange(byte[] key,
long start,
long end) |
Set<byte[]> |
zrevrangeByLex(byte[] key,
byte[] max,
byte[] min) |
Set<byte[]> |
zrevrangeByLex(byte[] key,
byte[] max,
byte[] min,
int offset,
int count) |
Set<byte[]> |
zrevrangeByScore(byte[] key,
byte[] max,
byte[] min) |
Set<byte[]> |
zrevrangeByScore(byte[] key,
byte[] max,
byte[] min,
int offset,
int count) |
Set<byte[]> |
zrevrangeByScore(byte[] key,
double max,
double min) |
Set<byte[]> |
zrevrangeByScore(byte[] key,
double max,
double min,
int offset,
int count) |
Set<Tuple> |
zrevrangeByScoreWithScores(byte[] key,
byte[] max,
byte[] min) |
Set<Tuple> |
zrevrangeByScoreWithScores(byte[] key,
byte[] max,
byte[] min,
int offset,
int count) |
Set<Tuple> |
zrevrangeByScoreWithScores(byte[] key,
double max,
double min) |
Set<Tuple> |
zrevrangeByScoreWithScores(byte[] key,
double max,
double min,
int offset,
int count) |
Set<Tuple> |
zrevrangeWithScores(byte[] key,
long start,
long end) |
Long |
zrevrank(byte[] key,
byte[] member) |
Double |
zscore(byte[] key,
byte[] member) |
getAllShardInfo, getAllShards, getKeyTag, getShard, getShard, getShardInfo, getShardInfopublic BinaryShardedJedis(List<JedisShardInfo> shards)
public BinaryShardedJedis(List<JedisShardInfo> shards, Hashing algo)
public BinaryShardedJedis(List<JedisShardInfo> shards, Pattern keyTagPattern)
public BinaryShardedJedis(List<JedisShardInfo> shards, Hashing algo, Pattern keyTagPattern)
public void disconnect()
public String set(byte[] key, byte[] value)
set in interface BinaryJedisCommandspublic String set(byte[] key, byte[] value, byte[] nxxx, byte[] expx, long time)
set in interface BinaryJedisCommandspublic byte[] get(byte[] key)
get in interface BinaryJedisCommandspublic Boolean exists(byte[] key)
exists in interface BinaryJedisCommandspublic String type(byte[] key)
type in interface BinaryJedisCommandspublic Long expire(byte[] key, int seconds)
expire in interface BinaryJedisCommandspublic Long expireAt(byte[] key, long unixTime)
expireAt in interface BinaryJedisCommandspublic Long ttl(byte[] key)
ttl in interface BinaryJedisCommandspublic byte[] getSet(byte[] key,
byte[] value)
getSet in interface BinaryJedisCommandspublic Long setnx(byte[] key, byte[] value)
setnx in interface BinaryJedisCommandspublic String setex(byte[] key, int seconds, byte[] value)
setex in interface BinaryJedisCommandspublic Long decrBy(byte[] key, long integer)
decrBy in interface BinaryJedisCommandspublic Long decr(byte[] key)
decr in interface BinaryJedisCommandspublic Long del(byte[] key)
del in interface BinaryJedisCommandspublic Long incrBy(byte[] key, long integer)
incrBy in interface BinaryJedisCommandspublic Double incrByFloat(byte[] key, double integer)
incrByFloat in interface BinaryJedisCommandspublic Long incr(byte[] key)
incr in interface BinaryJedisCommandspublic Long append(byte[] key, byte[] value)
append in interface BinaryJedisCommandspublic byte[] substr(byte[] key,
int start,
int end)
substr in interface BinaryJedisCommandspublic Long hset(byte[] key, byte[] field, byte[] value)
hset in interface BinaryJedisCommandspublic byte[] hget(byte[] key,
byte[] field)
hget in interface BinaryJedisCommandspublic Long hsetnx(byte[] key, byte[] field, byte[] value)
hsetnx in interface BinaryJedisCommandspublic String hmset(byte[] key, Map<byte[],byte[]> hash)
hmset in interface BinaryJedisCommandspublic List<byte[]> hmget(byte[] key, byte[]... fields)
hmget in interface BinaryJedisCommandspublic Long hincrBy(byte[] key, byte[] field, long value)
hincrBy in interface BinaryJedisCommandspublic Double hincrByFloat(byte[] key, byte[] field, double value)
hincrByFloat in interface BinaryJedisCommandspublic Boolean hexists(byte[] key, byte[] field)
hexists in interface BinaryJedisCommandspublic Long hdel(byte[] key, byte[]... fields)
hdel in interface BinaryJedisCommandspublic Long hlen(byte[] key)
hlen in interface BinaryJedisCommandspublic Set<byte[]> hkeys(byte[] key)
hkeys in interface BinaryJedisCommandspublic Collection<byte[]> hvals(byte[] key)
hvals in interface BinaryJedisCommandspublic Map<byte[],byte[]> hgetAll(byte[] key)
hgetAll in interface BinaryJedisCommandspublic Long rpush(byte[] key, byte[]... strings)
rpush in interface BinaryJedisCommandspublic Long lpush(byte[] key, byte[]... strings)
lpush in interface BinaryJedisCommandspublic Long strlen(byte[] key)
strlen in interface BinaryJedisCommandspublic Long lpushx(byte[] key, byte[]... string)
lpushx in interface BinaryJedisCommandspublic Long persist(byte[] key)
persist in interface BinaryJedisCommandspublic Long rpushx(byte[] key, byte[]... string)
rpushx in interface BinaryJedisCommandspublic Long llen(byte[] key)
llen in interface BinaryJedisCommandspublic List<byte[]> lrange(byte[] key, long start, long end)
lrange in interface BinaryJedisCommandspublic String ltrim(byte[] key, long start, long end)
ltrim in interface BinaryJedisCommandspublic byte[] lindex(byte[] key,
long index)
lindex in interface BinaryJedisCommandspublic String lset(byte[] key, long index, byte[] value)
lset in interface BinaryJedisCommandspublic Long lrem(byte[] key, long count, byte[] value)
lrem in interface BinaryJedisCommandspublic byte[] lpop(byte[] key)
lpop in interface BinaryJedisCommandspublic byte[] rpop(byte[] key)
rpop in interface BinaryJedisCommandspublic Long sadd(byte[] key, byte[]... members)
sadd in interface BinaryJedisCommandspublic Set<byte[]> smembers(byte[] key)
smembers in interface BinaryJedisCommandspublic Long srem(byte[] key, byte[]... members)
srem in interface BinaryJedisCommandspublic byte[] spop(byte[] key)
spop in interface BinaryJedisCommandspublic Long scard(byte[] key)
scard in interface BinaryJedisCommandspublic Boolean sismember(byte[] key, byte[] member)
sismember in interface BinaryJedisCommandspublic byte[] srandmember(byte[] key)
srandmember in interface BinaryJedisCommandspublic List srandmember(byte[] key, int count)
srandmember in interface BinaryJedisCommandspublic Long zadd(byte[] key, double score, byte[] member)
zadd in interface BinaryJedisCommandspublic Long zadd(byte[] key, Map<byte[],Double> scoreMembers)
zadd in interface BinaryJedisCommandspublic Set<byte[]> zrange(byte[] key, long start, long end)
zrange in interface BinaryJedisCommandspublic Long zrem(byte[] key, byte[]... members)
zrem in interface BinaryJedisCommandspublic Double zincrby(byte[] key, double score, byte[] member)
zincrby in interface BinaryJedisCommandspublic Long zrank(byte[] key, byte[] member)
zrank in interface BinaryJedisCommandspublic Long zrevrank(byte[] key, byte[] member)
zrevrank in interface BinaryJedisCommandspublic Set<byte[]> zrevrange(byte[] key, long start, long end)
zrevrange in interface BinaryJedisCommandspublic Set<Tuple> zrangeWithScores(byte[] key, long start, long end)
zrangeWithScores in interface BinaryJedisCommandspublic Set<Tuple> zrevrangeWithScores(byte[] key, long start, long end)
zrevrangeWithScores in interface BinaryJedisCommandspublic Long zcard(byte[] key)
zcard in interface BinaryJedisCommandspublic Double zscore(byte[] key, byte[] member)
zscore in interface BinaryJedisCommandspublic List<byte[]> sort(byte[] key)
sort in interface BinaryJedisCommandspublic List<byte[]> sort(byte[] key, SortingParams sortingParameters)
sort in interface BinaryJedisCommandspublic Long zcount(byte[] key, double min, double max)
zcount in interface BinaryJedisCommandspublic Long zcount(byte[] key, byte[] min, byte[] max)
zcount in interface BinaryJedisCommandspublic Set<byte[]> zrangeByScore(byte[] key, double min, double max)
zrangeByScore in interface BinaryJedisCommandspublic Set<byte[]> zrangeByScore(byte[] key, double min, double max, int offset, int count)
zrangeByScore in interface BinaryJedisCommandspublic Set<Tuple> zrangeByScoreWithScores(byte[] key, double min, double max)
zrangeByScoreWithScores in interface BinaryJedisCommandspublic Set<Tuple> zrangeByScoreWithScores(byte[] key, double min, double max, int offset, int count)
zrangeByScoreWithScores in interface BinaryJedisCommandspublic Set<byte[]> zrangeByScore(byte[] key, byte[] min, byte[] max)
zrangeByScore in interface BinaryJedisCommandspublic Set<Tuple> zrangeByScoreWithScores(byte[] key, byte[] min, byte[] max)
zrangeByScoreWithScores in interface BinaryJedisCommandspublic Set<Tuple> zrangeByScoreWithScores(byte[] key, byte[] min, byte[] max, int offset, int count)
zrangeByScoreWithScores in interface BinaryJedisCommandspublic Set<byte[]> zrangeByScore(byte[] key, byte[] min, byte[] max, int offset, int count)
zrangeByScore in interface BinaryJedisCommandspublic Set<byte[]> zrevrangeByScore(byte[] key, double max, double min)
zrevrangeByScore in interface BinaryJedisCommandspublic Set<byte[]> zrevrangeByScore(byte[] key, double max, double min, int offset, int count)
zrevrangeByScore in interface BinaryJedisCommandspublic Set<Tuple> zrevrangeByScoreWithScores(byte[] key, double max, double min)
zrevrangeByScoreWithScores in interface BinaryJedisCommandspublic Set<Tuple> zrevrangeByScoreWithScores(byte[] key, double max, double min, int offset, int count)
zrevrangeByScoreWithScores in interface BinaryJedisCommandspublic Set<byte[]> zrevrangeByScore(byte[] key, byte[] max, byte[] min)
zrevrangeByScore in interface BinaryJedisCommandspublic Set<byte[]> zrevrangeByScore(byte[] key, byte[] max, byte[] min, int offset, int count)
zrevrangeByScore in interface BinaryJedisCommandspublic Set<Tuple> zrevrangeByScoreWithScores(byte[] key, byte[] max, byte[] min)
zrevrangeByScoreWithScores in interface BinaryJedisCommandspublic Set<Tuple> zrevrangeByScoreWithScores(byte[] key, byte[] max, byte[] min, int offset, int count)
zrevrangeByScoreWithScores in interface BinaryJedisCommandspublic Long zremrangeByRank(byte[] key, long start, long end)
zremrangeByRank in interface BinaryJedisCommandspublic Long zremrangeByScore(byte[] key, double start, double end)
zremrangeByScore in interface BinaryJedisCommandspublic Long zremrangeByScore(byte[] key, byte[] start, byte[] end)
zremrangeByScore in interface BinaryJedisCommandspublic Long zlexcount(byte[] key, byte[] min, byte[] max)
zlexcount in interface BinaryJedisCommandspublic Set<byte[]> zrangeByLex(byte[] key, byte[] min, byte[] max)
zrangeByLex in interface BinaryJedisCommandspublic Set<byte[]> zrangeByLex(byte[] key, byte[] min, byte[] max, int offset, int count)
zrangeByLex in interface BinaryJedisCommandspublic Set<byte[]> zrevrangeByLex(byte[] key, byte[] max, byte[] min)
zrevrangeByLex in interface BinaryJedisCommandspublic Set<byte[]> zrevrangeByLex(byte[] key, byte[] max, byte[] min, int offset, int count)
zrevrangeByLex in interface BinaryJedisCommandspublic Long zremrangeByLex(byte[] key, byte[] min, byte[] max)
zremrangeByLex in interface BinaryJedisCommandspublic Long linsert(byte[] key, BinaryClient.LIST_POSITION where, byte[] pivot, byte[] value)
linsert in interface BinaryJedisCommandspublic ShardedJedisPipeline pipelined()
public Long objectRefcount(byte[] key)
public byte[] objectEncoding(byte[] key)
public Long objectIdletime(byte[] key)
public Boolean setbit(byte[] key, long offset, boolean value)
setbit in interface BinaryJedisCommandspublic Boolean setbit(byte[] key, long offset, byte[] value)
setbit in interface BinaryJedisCommandspublic Boolean getbit(byte[] key, long offset)
getbit in interface BinaryJedisCommandspublic Long setrange(byte[] key, long offset, byte[] value)
setrange in interface BinaryJedisCommandspublic byte[] getrange(byte[] key,
long startOffset,
long endOffset)
getrange in interface BinaryJedisCommandspublic Long move(byte[] key, int dbIndex)
move in interface BinaryJedisCommandspublic byte[] echo(byte[] arg)
echo in interface BinaryJedisCommandspublic List<byte[]> brpop(byte[] arg)
brpop in interface BinaryJedisCommandspublic List<byte[]> blpop(byte[] arg)
blpop in interface BinaryJedisCommandspublic Long bitcount(byte[] key)
bitcount in interface BinaryJedisCommandspublic Long bitcount(byte[] key, long start, long end)
bitcount in interface BinaryJedisCommandspublic Long pfadd(byte[] key, byte[]... elements)
pfadd in interface BinaryJedisCommandspublic long pfcount(byte[] key)
pfcount in interface BinaryJedisCommandsProcessing library Redis by Darius Morawiec. (c) 2015