public class JedisCluster extends Object implements JedisCommands, BasicCommands, Closeable
| Modifier and Type | Class and Description |
|---|---|
static class |
JedisCluster.Reset |
| Modifier and Type | Field and Description |
|---|---|
static short |
HASHSLOTS |
| Constructor and Description |
|---|
JedisCluster(Set<HostAndPort> nodes) |
JedisCluster(Set<HostAndPort> nodes,
GenericObjectPoolConfig poolConfig) |
JedisCluster(Set<HostAndPort> nodes,
int timeout) |
JedisCluster(Set<HostAndPort> nodes,
int timeout,
GenericObjectPoolConfig poolConfig) |
JedisCluster(Set<HostAndPort> nodes,
int timeout,
int maxRedirections) |
JedisCluster(Set<HostAndPort> jedisClusterNode,
int timeout,
int maxRedirections,
GenericObjectPoolConfig poolConfig) |
public static final short HASHSLOTS
public JedisCluster(Set<HostAndPort> nodes, int timeout)
public JedisCluster(Set<HostAndPort> nodes)
public JedisCluster(Set<HostAndPort> nodes, int timeout, int maxRedirections)
public JedisCluster(Set<HostAndPort> nodes, GenericObjectPoolConfig poolConfig)
public JedisCluster(Set<HostAndPort> nodes, int timeout, GenericObjectPoolConfig poolConfig)
public JedisCluster(Set<HostAndPort> jedisClusterNode, int timeout, int maxRedirections, GenericObjectPoolConfig poolConfig)
public void close()
close in interface Closeableclose in interface AutoCloseablepublic 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 Boolean exists(String key)
exists in interface JedisCommandspublic Long persist(String key)
persist 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 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 value)
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 hdel(String key, String... field)
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... string)
rpush in interface JedisCommandspublic Long lpush(String key, String... string)
lpush 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... member)
sadd in interface JedisCommandspublic Set<String> smembers(String key)
smembers in interface JedisCommandspublic Long srem(String key, String... member)
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 strlen(String key)
strlen 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... member)
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> zrangeByScore(String key, String min, String 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, 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, 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<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, double max, double min, int offset, int count)
zrevrangeByScoreWithScores 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 lpushx(String key, String... string)
lpushx in interface JedisCommandspublic Long rpushx(String key, String... string)
rpushx in interface JedisCommandspublic List<String> blpop(String arg)
blpop in interface JedisCommandspublic List<String> brpop(String arg)
brpop in interface JedisCommandspublic Long del(String key)
del in interface JedisCommandspublic String echo(String string)
echo in interface JedisCommandspublic Long move(String key, int dbIndex)
move in interface JedisCommandspublic Long bitcount(String key)
bitcount in interface JedisCommandspublic Long bitcount(String key, long start, long end)
bitcount in interface JedisCommandspublic String ping()
ping in interface BasicCommandspublic String quit()
quit in interface BasicCommandspublic String flushDB()
flushDB in interface BasicCommandspublic Long dbSize()
dbSize in interface BasicCommandspublic String select(int index)
select in interface BasicCommandspublic String flushAll()
flushAll in interface BasicCommandspublic String auth(String password)
auth in interface BasicCommandspublic String save()
save in interface BasicCommandspublic String bgsave()
bgsave in interface BasicCommandspublic String bgrewriteaof()
bgrewriteaof in interface BasicCommandspublic Long lastsave()
lastsave in interface BasicCommandspublic String shutdown()
shutdown in interface BasicCommandspublic String info()
info in interface BasicCommandspublic String info(String section)
info in interface BasicCommandspublic String slaveof(String host, int port)
slaveof in interface BasicCommandspublic String slaveofNoOne()
slaveofNoOne in interface BasicCommandspublic int getDB()
getDB in interface BasicCommandspublic String debug(DebugParams params)
debug in interface BasicCommandspublic String configResetStat()
configResetStat in interface BasicCommandspublic Long waitReplicas(int replicas, long timeout)
waitReplicas in interface BasicCommandspublic 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 Long pfadd(String key, String... elements)
pfadd in interface JedisCommandspublic long pfcount(String key)
pfcount in interface JedisCommandspublic List<String> blpop(int timeout, String key)
blpop in interface JedisCommandspublic List<String> brpop(int timeout, String key)
brpop in interface JedisCommandsProcessing library Redis by Darius Morawiec. (c) 2015