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