public class TinyShardJedis
extends redis.clients.jedis.ShardedJedis
Constructor and Description |
---|
TinyShardJedis(List<redis.clients.jedis.JedisShardInfo> shards,
redis.clients.util.Hashing algo,
Pattern keyTagPattern) |
Modifier and Type | Method and Description |
---|---|
Long |
bitcount(String key) |
Long |
bitcount(String key,
long start,
long end) |
List<String> |
blpop(int timeout,
String key) |
List<String> |
blpop(String arg) |
List<String> |
brpop(int timeout,
String key) |
List<String> |
brpop(String arg) |
void |
close() |
int |
deleteMatchKey(String keyPattern) |
String |
echo(String string) |
Boolean |
exists(String key) |
void |
flushAll() |
void |
flushDB() |
String |
get(String key) |
Collection<redis.clients.jedis.Jedis> |
getAllReadShards() |
Collection<redis.clients.jedis.Jedis> |
getAllShards() |
Boolean |
getbit(String key,
long offset) |
String |
getrange(String key,
long startOffset,
long endOffset) |
redis.clients.jedis.Jedis |
getReadShard(String key) |
Map<redis.clients.jedis.JedisShardInfo,List<redis.clients.jedis.Jedis>> |
getReadShardsMap() |
String |
getSet(String key,
String value) |
redis.clients.jedis.Jedis |
getShard(String key) |
Boolean |
hexists(String key,
String field) |
String |
hget(String key,
String field) |
Map<String,String> |
hgetAll(String key) |
Set<String> |
hkeys(String key) |
Long |
hlen(String key) |
List<String> |
hmget(String key,
String... fields) |
redis.clients.jedis.ScanResult<Map.Entry<String,String>> |
hscan(String key,
int cursor)
Deprecated.
|
redis.clients.jedis.ScanResult<Map.Entry<String,String>> |
hscan(String key,
String cursor) |
List<String> |
hvals(String key) |
Set<String> |
keys(String keyPattern) |
String |
lindex(String key,
long index) |
Long |
llen(String key) |
List<String> |
lrange(String key,
long start,
long end) |
long |
pfcount(String key) |
void |
resetState() |
void |
resetWriteState() |
Long |
scard(String key) |
Boolean |
sismember(String key,
String member) |
Set<String> |
smembers(String key) |
String |
srandmember(String key) |
List<String> |
srandmember(String key,
int count) |
redis.clients.jedis.ScanResult<String> |
sscan(String key,
int cursor)
Deprecated.
|
redis.clients.jedis.ScanResult<String> |
sscan(String key,
String cursor) |
Long |
strlen(String key) |
String |
substr(String key,
int start,
int end) |
Long |
ttl(String key) |
String |
type(String key) |
Long |
zcard(String key) |
Long |
zcount(String key,
double min,
double max) |
Long |
zcount(String key,
String min,
String max) |
Long |
zlexcount(String key,
String min,
String max) |
Set<String> |
zrange(String key,
long start,
long end) |
Set<String> |
zrangeByLex(String key,
String min,
String max) |
Set<String> |
zrangeByLex(String key,
String min,
String max,
int offset,
int count) |
Set<String> |
zrangeByScore(String key,
double min,
double max) |
Set<String> |
zrangeByScore(String key,
double min,
double max,
int offset,
int count) |
Set<String> |
zrangeByScore(String key,
String min,
String max) |
Set<String> |
zrangeByScore(String key,
String min,
String max,
int offset,
int count) |
Set<redis.clients.jedis.Tuple> |
zrangeByScoreWithScores(String key,
double min,
double max) |
Set<redis.clients.jedis.Tuple> |
zrangeByScoreWithScores(String key,
double min,
double max,
int offset,
int count) |
Set<redis.clients.jedis.Tuple> |
zrangeByScoreWithScores(String key,
String min,
String max) |
Set<redis.clients.jedis.Tuple> |
zrangeByScoreWithScores(String key,
String min,
String max,
int offset,
int count) |
Set<redis.clients.jedis.Tuple> |
zrangeWithScores(String key,
long start,
long end) |
Long |
zrank(String key,
String member) |
Set<String> |
zrevrange(String key,
long start,
long end) |
Set<String> |
zrevrangeByLex(String key,
String max,
String min) |
Set<String> |
zrevrangeByLex(String key,
String max,
String min,
int offset,
int count) |
Set<String> |
zrevrangeByScore(String key,
double max,
double min) |
Set<String> |
zrevrangeByScore(String key,
double max,
double min,
int offset,
int count) |
Set<String> |
zrevrangeByScore(String key,
String max,
String min) |
Set<String> |
zrevrangeByScore(String key,
String max,
String min,
int offset,
int count) |
Set<redis.clients.jedis.Tuple> |
zrevrangeByScoreWithScores(String key,
double max,
double min) |
Set<redis.clients.jedis.Tuple> |
zrevrangeByScoreWithScores(String key,
double max,
double min,
int offset,
int count) |
Set<redis.clients.jedis.Tuple> |
zrevrangeByScoreWithScores(String key,
String max,
String min) |
Set<redis.clients.jedis.Tuple> |
zrevrangeByScoreWithScores(String key,
String max,
String min,
int offset,
int count) |
Set<redis.clients.jedis.Tuple> |
zrevrangeWithScores(String key,
long start,
long end) |
Long |
zrevrank(String key,
String member) |
redis.clients.jedis.ScanResult<redis.clients.jedis.Tuple> |
zscan(String key,
int cursor)
Deprecated.
|
redis.clients.jedis.ScanResult<redis.clients.jedis.Tuple> |
zscan(String key,
String cursor) |
Double |
zscore(String key,
String member) |
append, decr, decrBy, del, expire, expireAt, hdel, hincrBy, hincrByFloat, hmset, hset, hsetnx, incr, incrBy, incrByFloat, linsert, lpop, lpush, lpushx, lrem, lset, ltrim, move, persist, pexpire, pexpireAt, pfadd, rpop, rpush, rpushx, sadd, set, set, setbit, setbit, setDataSource, setex, setnx, setrange, sort, sort, spop, spop, srem, zadd, zadd, zincrby, zrem, zremrangeByLex, zremrangeByRank, zremrangeByScore, zremrangeByScore
append, bitcount, bitcount, blpop, brpop, create, 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, pexpire, pexpireAt, pfadd, pfcount, pipelined, pipelined, rpop, rpush, rpushx, sadd, scard, set, set, setbit, setbit, setex, setnx, setrange, sismember, smembers, sort, sort, spop, 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, zscore
public redis.clients.jedis.Jedis getShard(String key)
getShard
in class redis.clients.util.Sharded<redis.clients.jedis.Jedis,redis.clients.jedis.JedisShardInfo>
public redis.clients.jedis.Jedis getReadShard(String key)
public void resetWriteState()
public Collection<redis.clients.jedis.Jedis> getAllReadShards()
public Map<redis.clients.jedis.JedisShardInfo,List<redis.clients.jedis.Jedis>> getReadShardsMap()
public Collection<redis.clients.jedis.Jedis> getAllShards()
getAllShards
in class redis.clients.util.Sharded<redis.clients.jedis.Jedis,redis.clients.jedis.JedisShardInfo>
public void close()
close
in interface Closeable
close
in interface AutoCloseable
close
in class redis.clients.jedis.ShardedJedis
public String get(String key)
get
in interface redis.clients.jedis.JedisCommands
get
in class redis.clients.jedis.ShardedJedis
public String echo(String string)
echo
in interface redis.clients.jedis.JedisCommands
echo
in class redis.clients.jedis.ShardedJedis
public Boolean exists(String key)
exists
in interface redis.clients.jedis.JedisCommands
exists
in class redis.clients.jedis.ShardedJedis
public String type(String key)
type
in interface redis.clients.jedis.JedisCommands
type
in class redis.clients.jedis.ShardedJedis
public Long ttl(String key)
ttl
in interface redis.clients.jedis.JedisCommands
ttl
in class redis.clients.jedis.ShardedJedis
public Boolean getbit(String key, long offset)
getbit
in interface redis.clients.jedis.JedisCommands
getbit
in class redis.clients.jedis.ShardedJedis
public String getrange(String key, long startOffset, long endOffset)
getrange
in interface redis.clients.jedis.JedisCommands
getrange
in class redis.clients.jedis.ShardedJedis
public String getSet(String key, String value)
getSet
in interface redis.clients.jedis.JedisCommands
getSet
in class redis.clients.jedis.ShardedJedis
public List<String> blpop(String arg)
blpop
in interface redis.clients.jedis.JedisCommands
blpop
in class redis.clients.jedis.ShardedJedis
public List<String> blpop(int timeout, String key)
blpop
in interface redis.clients.jedis.JedisCommands
blpop
in class redis.clients.jedis.ShardedJedis
public List<String> brpop(String arg)
brpop
in interface redis.clients.jedis.JedisCommands
brpop
in class redis.clients.jedis.ShardedJedis
public List<String> brpop(int timeout, String key)
brpop
in interface redis.clients.jedis.JedisCommands
brpop
in class redis.clients.jedis.ShardedJedis
public String substr(String key, int start, int end)
substr
in interface redis.clients.jedis.JedisCommands
substr
in class redis.clients.jedis.ShardedJedis
public String hget(String key, String field)
hget
in interface redis.clients.jedis.JedisCommands
hget
in class redis.clients.jedis.ShardedJedis
public List<String> hmget(String key, String... fields)
hmget
in interface redis.clients.jedis.JedisCommands
hmget
in class redis.clients.jedis.ShardedJedis
public Boolean hexists(String key, String field)
hexists
in interface redis.clients.jedis.JedisCommands
hexists
in class redis.clients.jedis.ShardedJedis
public Long hlen(String key)
hlen
in interface redis.clients.jedis.JedisCommands
hlen
in class redis.clients.jedis.ShardedJedis
public Set<String> hkeys(String key)
hkeys
in interface redis.clients.jedis.JedisCommands
hkeys
in class redis.clients.jedis.ShardedJedis
public List<String> hvals(String key)
hvals
in interface redis.clients.jedis.JedisCommands
hvals
in class redis.clients.jedis.ShardedJedis
public Map<String,String> hgetAll(String key)
hgetAll
in interface redis.clients.jedis.JedisCommands
hgetAll
in class redis.clients.jedis.ShardedJedis
public Long strlen(String key)
strlen
in interface redis.clients.jedis.JedisCommands
strlen
in class redis.clients.jedis.ShardedJedis
public Long llen(String key)
llen
in interface redis.clients.jedis.JedisCommands
llen
in class redis.clients.jedis.ShardedJedis
public List<String> lrange(String key, long start, long end)
lrange
in interface redis.clients.jedis.JedisCommands
lrange
in class redis.clients.jedis.ShardedJedis
public String lindex(String key, long index)
lindex
in interface redis.clients.jedis.JedisCommands
lindex
in class redis.clients.jedis.ShardedJedis
public Set<String> smembers(String key)
smembers
in interface redis.clients.jedis.JedisCommands
smembers
in class redis.clients.jedis.ShardedJedis
public Long scard(String key)
scard
in interface redis.clients.jedis.JedisCommands
scard
in class redis.clients.jedis.ShardedJedis
public Boolean sismember(String key, String member)
sismember
in interface redis.clients.jedis.JedisCommands
sismember
in class redis.clients.jedis.ShardedJedis
public String srandmember(String key)
srandmember
in interface redis.clients.jedis.JedisCommands
srandmember
in class redis.clients.jedis.ShardedJedis
public List<String> srandmember(String key, int count)
srandmember
in interface redis.clients.jedis.JedisCommands
srandmember
in class redis.clients.jedis.ShardedJedis
public Set<String> zrange(String key, long start, long end)
zrange
in interface redis.clients.jedis.JedisCommands
zrange
in class redis.clients.jedis.ShardedJedis
public Long zrank(String key, String member)
zrank
in interface redis.clients.jedis.JedisCommands
zrank
in class redis.clients.jedis.ShardedJedis
public Long zrevrank(String key, String member)
zrevrank
in interface redis.clients.jedis.JedisCommands
zrevrank
in class redis.clients.jedis.ShardedJedis
public Set<String> zrevrange(String key, long start, long end)
zrevrange
in interface redis.clients.jedis.JedisCommands
zrevrange
in class redis.clients.jedis.ShardedJedis
public Set<redis.clients.jedis.Tuple> zrangeWithScores(String key, long start, long end)
zrangeWithScores
in interface redis.clients.jedis.JedisCommands
zrangeWithScores
in class redis.clients.jedis.ShardedJedis
public Set<redis.clients.jedis.Tuple> zrevrangeWithScores(String key, long start, long end)
zrevrangeWithScores
in interface redis.clients.jedis.JedisCommands
zrevrangeWithScores
in class redis.clients.jedis.ShardedJedis
public Long zcard(String key)
zcard
in interface redis.clients.jedis.JedisCommands
zcard
in class redis.clients.jedis.ShardedJedis
public Double zscore(String key, String member)
zscore
in interface redis.clients.jedis.JedisCommands
zscore
in class redis.clients.jedis.ShardedJedis
public Long zcount(String key, double min, double max)
zcount
in interface redis.clients.jedis.JedisCommands
zcount
in class redis.clients.jedis.ShardedJedis
public Long zcount(String key, String min, String max)
zcount
in interface redis.clients.jedis.JedisCommands
zcount
in class redis.clients.jedis.ShardedJedis
public Set<String> zrangeByScore(String key, double min, double max)
zrangeByScore
in interface redis.clients.jedis.JedisCommands
zrangeByScore
in class redis.clients.jedis.ShardedJedis
public Set<String> zrevrangeByScore(String key, double max, double min)
zrevrangeByScore
in interface redis.clients.jedis.JedisCommands
zrevrangeByScore
in class redis.clients.jedis.ShardedJedis
public Set<String> zrangeByScore(String key, double min, double max, int offset, int count)
zrangeByScore
in interface redis.clients.jedis.JedisCommands
zrangeByScore
in class redis.clients.jedis.ShardedJedis
public Set<String> zrevrangeByScore(String key, double max, double min, int offset, int count)
zrevrangeByScore
in interface redis.clients.jedis.JedisCommands
zrevrangeByScore
in class redis.clients.jedis.ShardedJedis
public Set<redis.clients.jedis.Tuple> zrangeByScoreWithScores(String key, double min, double max)
zrangeByScoreWithScores
in interface redis.clients.jedis.JedisCommands
zrangeByScoreWithScores
in class redis.clients.jedis.ShardedJedis
public Set<redis.clients.jedis.Tuple> zrevrangeByScoreWithScores(String key, double max, double min)
zrevrangeByScoreWithScores
in interface redis.clients.jedis.JedisCommands
zrevrangeByScoreWithScores
in class redis.clients.jedis.ShardedJedis
public Set<redis.clients.jedis.Tuple> zrangeByScoreWithScores(String key, double min, double max, int offset, int count)
zrangeByScoreWithScores
in interface redis.clients.jedis.JedisCommands
zrangeByScoreWithScores
in class redis.clients.jedis.ShardedJedis
public Set<redis.clients.jedis.Tuple> zrevrangeByScoreWithScores(String key, double max, double min, int offset, int count)
zrevrangeByScoreWithScores
in interface redis.clients.jedis.JedisCommands
zrevrangeByScoreWithScores
in class redis.clients.jedis.ShardedJedis
public Set<String> zrangeByScore(String key, String min, String max)
zrangeByScore
in interface redis.clients.jedis.JedisCommands
zrangeByScore
in class redis.clients.jedis.ShardedJedis
public Set<String> zrevrangeByScore(String key, String max, String min)
zrevrangeByScore
in interface redis.clients.jedis.JedisCommands
zrevrangeByScore
in class redis.clients.jedis.ShardedJedis
public Set<String> zrangeByScore(String key, String min, String max, int offset, int count)
zrangeByScore
in interface redis.clients.jedis.JedisCommands
zrangeByScore
in class redis.clients.jedis.ShardedJedis
public Set<String> zrevrangeByScore(String key, String max, String min, int offset, int count)
zrevrangeByScore
in interface redis.clients.jedis.JedisCommands
zrevrangeByScore
in class redis.clients.jedis.ShardedJedis
public Set<redis.clients.jedis.Tuple> zrangeByScoreWithScores(String key, String min, String max)
zrangeByScoreWithScores
in interface redis.clients.jedis.JedisCommands
zrangeByScoreWithScores
in class redis.clients.jedis.ShardedJedis
public Set<redis.clients.jedis.Tuple> zrevrangeByScoreWithScores(String key, String max, String min)
zrevrangeByScoreWithScores
in interface redis.clients.jedis.JedisCommands
zrevrangeByScoreWithScores
in class redis.clients.jedis.ShardedJedis
public Set<redis.clients.jedis.Tuple> zrangeByScoreWithScores(String key, String min, String max, int offset, int count)
zrangeByScoreWithScores
in interface redis.clients.jedis.JedisCommands
zrangeByScoreWithScores
in class redis.clients.jedis.ShardedJedis
public Set<redis.clients.jedis.Tuple> zrevrangeByScoreWithScores(String key, String max, String min, int offset, int count)
zrevrangeByScoreWithScores
in interface redis.clients.jedis.JedisCommands
zrevrangeByScoreWithScores
in class redis.clients.jedis.ShardedJedis
public Long zlexcount(String key, String min, String max)
zlexcount
in interface redis.clients.jedis.JedisCommands
zlexcount
in class redis.clients.jedis.ShardedJedis
public Set<String> zrangeByLex(String key, String min, String max)
zrangeByLex
in interface redis.clients.jedis.JedisCommands
zrangeByLex
in class redis.clients.jedis.ShardedJedis
public Set<String> zrangeByLex(String key, String min, String max, int offset, int count)
zrangeByLex
in interface redis.clients.jedis.JedisCommands
zrangeByLex
in class redis.clients.jedis.ShardedJedis
public Set<String> zrevrangeByLex(String key, String max, String min)
zrevrangeByLex
in interface redis.clients.jedis.JedisCommands
zrevrangeByLex
in class redis.clients.jedis.ShardedJedis
public Set<String> zrevrangeByLex(String key, String max, String min, int offset, int count)
zrevrangeByLex
in interface redis.clients.jedis.JedisCommands
zrevrangeByLex
in class redis.clients.jedis.ShardedJedis
public Long bitcount(String key)
bitcount
in interface redis.clients.jedis.JedisCommands
bitcount
in class redis.clients.jedis.ShardedJedis
public Long bitcount(String key, long start, long end)
bitcount
in interface redis.clients.jedis.JedisCommands
bitcount
in class redis.clients.jedis.ShardedJedis
@Deprecated public redis.clients.jedis.ScanResult<Map.Entry<String,String>> hscan(String key, int cursor)
hscan
in interface redis.clients.jedis.JedisCommands
hscan
in class redis.clients.jedis.ShardedJedis
@Deprecated public redis.clients.jedis.ScanResult<String> sscan(String key, int cursor)
sscan
in interface redis.clients.jedis.JedisCommands
sscan
in class redis.clients.jedis.ShardedJedis
@Deprecated public redis.clients.jedis.ScanResult<redis.clients.jedis.Tuple> zscan(String key, int cursor)
zscan
in interface redis.clients.jedis.JedisCommands
zscan
in class redis.clients.jedis.ShardedJedis
public redis.clients.jedis.ScanResult<Map.Entry<String,String>> hscan(String key, String cursor)
hscan
in interface redis.clients.jedis.JedisCommands
hscan
in class redis.clients.jedis.ShardedJedis
public redis.clients.jedis.ScanResult<String> sscan(String key, String cursor)
sscan
in interface redis.clients.jedis.JedisCommands
sscan
in class redis.clients.jedis.ShardedJedis
public redis.clients.jedis.ScanResult<redis.clients.jedis.Tuple> zscan(String key, String cursor)
zscan
in interface redis.clients.jedis.JedisCommands
zscan
in class redis.clients.jedis.ShardedJedis
public long pfcount(String key)
pfcount
in interface redis.clients.jedis.JedisCommands
pfcount
in class redis.clients.jedis.ShardedJedis
public void resetState()
resetState
in class redis.clients.jedis.ShardedJedis
public void flushAll()
public void flushDB()
public int deleteMatchKey(String keyPattern)
Copyright © 2006–2018 TinyGroup. All rights reserved.