public class BinaryClient extends Connection
Modifier and Type | Class and Description |
---|---|
static class |
BinaryClient.LIST_POSITION |
Constructor and Description |
---|
BinaryClient(String host) |
BinaryClient(String host,
int port) |
Modifier and Type | Method and Description |
---|---|
void |
append(byte[] key,
byte[] value) |
void |
asking() |
void |
auth(String password) |
void |
bgrewriteaof() |
void |
bgsave() |
void |
bitcount(byte[] key) |
void |
bitcount(byte[] key,
long start,
long end) |
void |
bitop(BitOP op,
byte[] destKey,
byte[]... srcKeys) |
void |
bitpos(byte[] key,
boolean value,
BitPosParams params) |
void |
blpop(byte[][] args) |
void |
blpop(int timeout,
byte[]... keys) |
void |
brpop(byte[][] args) |
void |
brpop(int timeout,
byte[]... keys) |
void |
brpoplpush(byte[] source,
byte[] destination,
int timeout) |
void |
clientGetname() |
void |
clientKill(byte[] client) |
void |
clientList() |
void |
clientSetname(byte[] name) |
void |
close() |
void |
cluster(byte[]... args) |
void |
configGet(byte[] pattern) |
void |
configResetStat() |
void |
configSet(byte[] parameter,
byte[] value) |
void |
connect() |
void |
dbSize() |
void |
debug(DebugParams params) |
void |
decr(byte[] key) |
void |
decrBy(byte[] key,
long integer) |
void |
del(byte[]... keys) |
void |
discard() |
void |
disconnect() |
void |
dump(byte[] key) |
void |
echo(byte[] string) |
void |
eval(byte[] script,
byte[] keyCount,
byte[][] params) |
void |
eval(byte[] script,
int keyCount,
byte[]... params) |
void |
evalsha(byte[] sha1,
byte[] keyCount,
byte[]... params) |
void |
evalsha(byte[] sha1,
int keyCount,
byte[]... params) |
void |
exec() |
void |
exists(byte[] key) |
void |
expire(byte[] key,
int seconds) |
void |
expireAt(byte[] key,
long unixTime) |
void |
flushAll() |
void |
flushDB() |
void |
get(byte[] key) |
void |
getbit(byte[] key,
long offset) |
Long |
getDB() |
void |
getrange(byte[] key,
long startOffset,
long endOffset) |
void |
getSet(byte[] key,
byte[] value) |
void |
hdel(byte[] key,
byte[]... fields) |
void |
hexists(byte[] key,
byte[] field) |
void |
hget(byte[] key,
byte[] field) |
void |
hgetAll(byte[] key) |
void |
hincrBy(byte[] key,
byte[] field,
long value) |
void |
hincrByFloat(byte[] key,
byte[] field,
double increment) |
void |
hkeys(byte[] key) |
void |
hlen(byte[] key) |
void |
hmget(byte[] key,
byte[]... fields) |
void |
hmset(byte[] key,
Map<byte[],byte[]> hash) |
void |
hscan(byte[] key,
byte[] cursor,
ScanParams params) |
void |
hscan(byte[] key,
int cursor,
ScanParams params)
Deprecated.
|
void |
hset(byte[] key,
byte[] field,
byte[] value) |
void |
hsetnx(byte[] key,
byte[] field,
byte[] value) |
void |
hvals(byte[] key) |
void |
incr(byte[] key) |
void |
incrBy(byte[] key,
long integer) |
void |
incrByFloat(byte[] key,
double value) |
void |
info() |
void |
info(String section) |
boolean |
isInMulti() |
boolean |
isInWatch() |
void |
keys(byte[] pattern) |
void |
lastsave() |
void |
lindex(byte[] key,
long index) |
void |
linsert(byte[] key,
BinaryClient.LIST_POSITION where,
byte[] pivot,
byte[] value) |
void |
llen(byte[] key) |
void |
lpop(byte[] key) |
void |
lpush(byte[] key,
byte[]... strings) |
void |
lpushx(byte[] key,
byte[]... string) |
void |
lrange(byte[] key,
long start,
long end) |
void |
lrem(byte[] key,
long count,
byte[] value) |
void |
lset(byte[] key,
long index,
byte[] value) |
void |
ltrim(byte[] key,
long start,
long end) |
void |
mget(byte[]... keys) |
void |
migrate(byte[] host,
int port,
byte[] key,
int destinationDb,
int timeout) |
void |
monitor() |
void |
move(byte[] key,
int dbIndex) |
void |
mset(byte[]... keysvalues) |
void |
msetnx(byte[]... keysvalues) |
void |
multi() |
void |
objectEncoding(byte[] key) |
void |
objectIdletime(byte[] key) |
void |
objectRefcount(byte[] key) |
void |
persist(byte[] key) |
void |
pexpire(byte[] key,
int milliseconds)
Deprecated.
|
void |
pexpire(byte[] key,
long milliseconds) |
void |
pexpireAt(byte[] key,
long millisecondsTimestamp) |
void |
pfadd(byte[] key,
byte[]... elements) |
void |
pfcount(byte[]... keys) |
void |
pfcount(byte[] key) |
void |
pfmerge(byte[] destkey,
byte[]... sourcekeys) |
void |
ping() |
void |
psetex(byte[] key,
int milliseconds,
byte[] value) |
void |
psubscribe(byte[]... patterns) |
void |
pttl(byte[] key) |
void |
publish(byte[] channel,
byte[] message) |
void |
pubsub(byte[]... args) |
void |
punsubscribe() |
void |
punsubscribe(byte[]... patterns) |
void |
quit() |
void |
randomKey() |
void |
rename(byte[] oldkey,
byte[] newkey) |
void |
renamenx(byte[] oldkey,
byte[] newkey) |
void |
resetState() |
void |
restore(byte[] key,
int ttl,
byte[] serializedValue) |
void |
rpop(byte[] key) |
void |
rpoplpush(byte[] srckey,
byte[] dstkey) |
void |
rpush(byte[] key,
byte[]... strings) |
void |
rpushx(byte[] key,
byte[]... string) |
void |
sadd(byte[] key,
byte[]... members) |
void |
save() |
void |
scan(byte[] cursor,
ScanParams params) |
void |
scan(int cursor,
ScanParams params)
Deprecated.
|
void |
scard(byte[] key) |
void |
scriptExists(byte[]... sha1) |
void |
scriptFlush() |
void |
scriptKill() |
void |
scriptLoad(byte[] script) |
void |
sdiff(byte[]... keys) |
void |
sdiffstore(byte[] dstkey,
byte[]... keys) |
void |
select(int index) |
void |
sentinel(byte[]... args) |
void |
set(byte[] key,
byte[] value) |
void |
set(byte[] key,
byte[] value,
byte[] nxxx) |
void |
set(byte[] key,
byte[] value,
byte[] nxxx,
byte[] expx,
int time) |
void |
set(byte[] key,
byte[] value,
byte[] nxxx,
byte[] expx,
long time) |
void |
setbit(byte[] key,
long offset,
boolean value) |
void |
setbit(byte[] key,
long offset,
byte[] value) |
void |
setDb(long db) |
void |
setex(byte[] key,
int seconds,
byte[] value) |
void |
setnx(byte[] key,
byte[] value) |
void |
setPassword(String password) |
void |
setrange(byte[] key,
long offset,
byte[] value) |
void |
shutdown() |
void |
sinter(byte[]... keys) |
void |
sinterstore(byte[] dstkey,
byte[]... keys) |
void |
sismember(byte[] key,
byte[] member) |
void |
slaveof(String host,
int port) |
void |
slaveofNoOne() |
void |
slowlogGet() |
void |
slowlogGet(long entries) |
void |
slowlogLen() |
void |
slowlogReset() |
void |
smembers(byte[] key) |
void |
smove(byte[] srckey,
byte[] dstkey,
byte[] member) |
void |
sort(byte[] key) |
void |
sort(byte[] key,
byte[] dstkey) |
void |
sort(byte[] key,
SortingParams sortingParameters) |
void |
sort(byte[] key,
SortingParams sortingParameters,
byte[] dstkey) |
void |
spop(byte[] key) |
void |
srandmember(byte[] key) |
void |
srandmember(byte[] key,
int count) |
void |
srem(byte[] key,
byte[]... members) |
void |
sscan(byte[] key,
byte[] cursor,
ScanParams params) |
void |
sscan(byte[] key,
int cursor,
ScanParams params)
Deprecated.
|
void |
strlen(byte[] key) |
void |
subscribe(byte[]... channels) |
void |
substr(byte[] key,
int start,
int end) |
void |
sunion(byte[]... keys) |
void |
sunionstore(byte[] dstkey,
byte[]... keys) |
void |
sync() |
void |
time() |
void |
ttl(byte[] key) |
void |
type(byte[] key) |
void |
unsubscribe() |
void |
unsubscribe(byte[]... channels) |
void |
unwatch() |
void |
waitReplicas(int replicas,
long timeout) |
void |
watch(byte[]... keys) |
void |
zadd(byte[] key,
double score,
byte[] member) |
void |
zaddBinary(byte[] key,
Map<byte[],Double> scoreMembers) |
void |
zcard(byte[] key) |
void |
zcount(byte[] key,
byte[] min,
byte[] max) |
void |
zcount(byte[] key,
double min,
double max) |
void |
zcount(byte[] key,
String min,
String max) |
void |
zincrby(byte[] key,
double score,
byte[] member) |
void |
zinterstore(byte[] dstkey,
byte[]... sets) |
void |
zinterstore(byte[] dstkey,
ZParams params,
byte[]... sets) |
void |
zlexcount(byte[] key,
byte[] min,
byte[] max) |
void |
zrange(byte[] key,
long start,
long end) |
void |
zrangeByLex(byte[] key,
byte[] min,
byte[] max) |
void |
zrangeByLex(byte[] key,
byte[] min,
byte[] max,
int offset,
int count) |
void |
zrangeByScore(byte[] key,
byte[] min,
byte[] max) |
void |
zrangeByScore(byte[] key,
byte[] min,
byte[] max,
int offset,
int count) |
void |
zrangeByScore(byte[] key,
double min,
double max) |
void |
zrangeByScore(byte[] key,
double min,
double max,
int offset,
int count) |
void |
zrangeByScore(byte[] key,
String min,
String max) |
void |
zrangeByScore(byte[] key,
String min,
String max,
int offset,
int count) |
void |
zrangeByScoreWithScores(byte[] key,
byte[] min,
byte[] max) |
void |
zrangeByScoreWithScores(byte[] key,
byte[] min,
byte[] max,
int offset,
int count) |
void |
zrangeByScoreWithScores(byte[] key,
double min,
double max) |
void |
zrangeByScoreWithScores(byte[] key,
double min,
double max,
int offset,
int count) |
void |
zrangeByScoreWithScores(byte[] key,
String min,
String max) |
void |
zrangeByScoreWithScores(byte[] key,
String min,
String max,
int offset,
int count) |
void |
zrangeWithScores(byte[] key,
long start,
long end) |
void |
zrank(byte[] key,
byte[] member) |
void |
zrem(byte[] key,
byte[]... members) |
void |
zremrangeByLex(byte[] key,
byte[] min,
byte[] max) |
void |
zremrangeByRank(byte[] key,
long start,
long end) |
void |
zremrangeByScore(byte[] key,
byte[] start,
byte[] end) |
void |
zremrangeByScore(byte[] key,
String start,
String end) |
void |
zrevrange(byte[] key,
long start,
long end) |
void |
zrevrangeByScore(byte[] key,
byte[] max,
byte[] min) |
void |
zrevrangeByScore(byte[] key,
byte[] max,
byte[] min,
int offset,
int count) |
void |
zrevrangeByScore(byte[] key,
double max,
double min) |
void |
zrevrangeByScore(byte[] key,
double max,
double min,
int offset,
int count) |
void |
zrevrangeByScore(byte[] key,
String max,
String min) |
void |
zrevrangeByScore(byte[] key,
String max,
String min,
int offset,
int count) |
void |
zrevrangeByScoreWithScores(byte[] key,
byte[] max,
byte[] min) |
void |
zrevrangeByScoreWithScores(byte[] key,
byte[] max,
byte[] min,
int offset,
int count) |
void |
zrevrangeByScoreWithScores(byte[] key,
double max,
double min) |
void |
zrevrangeByScoreWithScores(byte[] key,
double max,
double min,
int offset,
int count) |
void |
zrevrangeByScoreWithScores(byte[] key,
String max,
String min) |
void |
zrevrangeByScoreWithScores(byte[] key,
String max,
String min,
int offset,
int count) |
void |
zrevrangeWithScores(byte[] key,
long start,
long end) |
void |
zrevrank(byte[] key,
byte[] member) |
void |
zscan(byte[] key,
byte[] cursor,
ScanParams params) |
void |
zscan(byte[] key,
int cursor,
ScanParams params)
Deprecated.
|
void |
zscore(byte[] key,
byte[] member) |
void |
zunionstore(byte[] dstkey,
byte[]... sets) |
void |
zunionstore(byte[] dstkey,
ZParams params,
byte[]... sets) |
flush, getAll, getAll, getBinaryBulkReply, getBinaryMultiBulkReply, getBulkReply, getHost, getIntegerMultiBulkReply, getIntegerReply, getMultiBulkReply, getObjectMultiBulkReply, getOne, getPort, getRawObjectMultiBulkReply, getSocket, getStatusCodeReply, getTimeout, isBroken, isConnected, readProtocolWithCheckingBroken, resetPipelinedCount, rollbackTimeout, sendCommand, sendCommand, sendCommand, setHost, setPort, setTimeout, setTimeoutInfinite
public BinaryClient(String host)
public BinaryClient(String host, int port)
public boolean isInMulti()
public boolean isInWatch()
public void setPassword(String password)
public void setDb(long db)
public void connect()
connect
in class Connection
public void ping()
public void set(byte[] key, byte[] value)
public void set(byte[] key, byte[] value, byte[] nxxx, byte[] expx, long time)
public void get(byte[] key)
public void quit()
public void exists(byte[] key)
public void del(byte[]... keys)
public void type(byte[] key)
public void flushDB()
public void keys(byte[] pattern)
public void randomKey()
public void rename(byte[] oldkey, byte[] newkey)
public void renamenx(byte[] oldkey, byte[] newkey)
public void dbSize()
public void expire(byte[] key, int seconds)
public void expireAt(byte[] key, long unixTime)
public void ttl(byte[] key)
public void select(int index)
public void move(byte[] key, int dbIndex)
public void flushAll()
public void getSet(byte[] key, byte[] value)
public void mget(byte[]... keys)
public void setnx(byte[] key, byte[] value)
public void setex(byte[] key, int seconds, byte[] value)
public void mset(byte[]... keysvalues)
public void msetnx(byte[]... keysvalues)
public void decrBy(byte[] key, long integer)
public void decr(byte[] key)
public void incrBy(byte[] key, long integer)
public void incrByFloat(byte[] key, double value)
public void incr(byte[] key)
public void append(byte[] key, byte[] value)
public void substr(byte[] key, int start, int end)
public void hset(byte[] key, byte[] field, byte[] value)
public void hget(byte[] key, byte[] field)
public void hsetnx(byte[] key, byte[] field, byte[] value)
public void hmset(byte[] key, Map<byte[],byte[]> hash)
public void hmget(byte[] key, byte[]... fields)
public void hincrBy(byte[] key, byte[] field, long value)
public void hexists(byte[] key, byte[] field)
public void hdel(byte[] key, byte[]... fields)
public void hlen(byte[] key)
public void hkeys(byte[] key)
public void hvals(byte[] key)
public void hgetAll(byte[] key)
public void rpush(byte[] key, byte[]... strings)
public void lpush(byte[] key, byte[]... strings)
public void llen(byte[] key)
public void lrange(byte[] key, long start, long end)
public void ltrim(byte[] key, long start, long end)
public void lindex(byte[] key, long index)
public void lset(byte[] key, long index, byte[] value)
public void lrem(byte[] key, long count, byte[] value)
public void lpop(byte[] key)
public void rpop(byte[] key)
public void rpoplpush(byte[] srckey, byte[] dstkey)
public void sadd(byte[] key, byte[]... members)
public void smembers(byte[] key)
public void srem(byte[] key, byte[]... members)
public void spop(byte[] key)
public void smove(byte[] srckey, byte[] dstkey, byte[] member)
public void scard(byte[] key)
public void sismember(byte[] key, byte[] member)
public void sinter(byte[]... keys)
public void sinterstore(byte[] dstkey, byte[]... keys)
public void sunion(byte[]... keys)
public void sunionstore(byte[] dstkey, byte[]... keys)
public void sdiff(byte[]... keys)
public void sdiffstore(byte[] dstkey, byte[]... keys)
public void srandmember(byte[] key)
public void zadd(byte[] key, double score, byte[] member)
public void zrange(byte[] key, long start, long end)
public void zrem(byte[] key, byte[]... members)
public void zincrby(byte[] key, double score, byte[] member)
public void zrank(byte[] key, byte[] member)
public void zrevrank(byte[] key, byte[] member)
public void zrevrange(byte[] key, long start, long end)
public void zrangeWithScores(byte[] key, long start, long end)
public void zrevrangeWithScores(byte[] key, long start, long end)
public void zcard(byte[] key)
public void zscore(byte[] key, byte[] member)
public void multi()
public void discard()
public void exec()
public void watch(byte[]... keys)
public void unwatch()
public void sort(byte[] key)
public void sort(byte[] key, SortingParams sortingParameters)
public void blpop(byte[][] args)
public void blpop(int timeout, byte[]... keys)
public void sort(byte[] key, SortingParams sortingParameters, byte[] dstkey)
public void sort(byte[] key, byte[] dstkey)
public void brpop(byte[][] args)
public void brpop(int timeout, byte[]... keys)
public void auth(String password)
public void subscribe(byte[]... channels)
public void publish(byte[] channel, byte[] message)
public void unsubscribe()
public void unsubscribe(byte[]... channels)
public void psubscribe(byte[]... patterns)
public void punsubscribe()
public void punsubscribe(byte[]... patterns)
public void pubsub(byte[]... args)
public void zcount(byte[] key, double min, double max)
public void zcount(byte[] key, byte[] min, byte[] max)
public void zrangeByScore(byte[] key, double min, double max)
public void zrangeByScore(byte[] key, byte[] min, byte[] max)
public void zrevrangeByScore(byte[] key, double max, double min)
public void zrevrangeByScore(byte[] key, byte[] max, byte[] min)
public void zrangeByScore(byte[] key, double min, double max, int offset, int count)
public void zrevrangeByScore(byte[] key, double max, double min, int offset, int count)
public void zrevrangeByScore(byte[] key, String max, String min, int offset, int count)
public void zrangeByScoreWithScores(byte[] key, double min, double max)
public void zrevrangeByScoreWithScores(byte[] key, double max, double min)
public void zrevrangeByScoreWithScores(byte[] key, String max, String min)
public void zrangeByScoreWithScores(byte[] key, double min, double max, int offset, int count)
public void zrangeByScoreWithScores(byte[] key, String min, String max, int offset, int count)
public void zrevrangeByScoreWithScores(byte[] key, double max, double min, int offset, int count)
public void zrevrangeByScoreWithScores(byte[] key, String max, String min, int offset, int count)
public void zrangeByScore(byte[] key, byte[] min, byte[] max, int offset, int count)
public void zrevrangeByScore(byte[] key, byte[] max, byte[] min, int offset, int count)
public void zrangeByScoreWithScores(byte[] key, byte[] min, byte[] max)
public void zrevrangeByScoreWithScores(byte[] key, byte[] max, byte[] min)
public void zrangeByScoreWithScores(byte[] key, byte[] min, byte[] max, int offset, int count)
public void zrevrangeByScoreWithScores(byte[] key, byte[] max, byte[] min, int offset, int count)
public void zremrangeByRank(byte[] key, long start, long end)
public void zremrangeByScore(byte[] key, byte[] start, byte[] end)
public void zunionstore(byte[] dstkey, byte[]... sets)
public void zunionstore(byte[] dstkey, ZParams params, byte[]... sets)
public void zinterstore(byte[] dstkey, byte[]... sets)
public void zinterstore(byte[] dstkey, ZParams params, byte[]... sets)
public void zlexcount(byte[] key, byte[] min, byte[] max)
public void zrangeByLex(byte[] key, byte[] min, byte[] max)
public void zrangeByLex(byte[] key, byte[] min, byte[] max, int offset, int count)
public void zremrangeByLex(byte[] key, byte[] min, byte[] max)
public void save()
public void bgsave()
public void bgrewriteaof()
public void lastsave()
public void shutdown()
public void info()
public void info(String section)
public void monitor()
public void slaveof(String host, int port)
public void slaveofNoOne()
public void configGet(byte[] pattern)
public void configSet(byte[] parameter, byte[] value)
public void strlen(byte[] key)
public void sync()
public void lpushx(byte[] key, byte[]... string)
public void persist(byte[] key)
public void rpushx(byte[] key, byte[]... string)
public void echo(byte[] string)
public void linsert(byte[] key, BinaryClient.LIST_POSITION where, byte[] pivot, byte[] value)
public void debug(DebugParams params)
public void brpoplpush(byte[] source, byte[] destination, int timeout)
public void configResetStat()
public void setbit(byte[] key, long offset, byte[] value)
public void setbit(byte[] key, long offset, boolean value)
public void getbit(byte[] key, long offset)
public void bitpos(byte[] key, boolean value, BitPosParams params)
public void setrange(byte[] key, long offset, byte[] value)
public void getrange(byte[] key, long startOffset, long endOffset)
public Long getDB()
public void disconnect()
disconnect
in class Connection
public void close()
close
in interface Closeable
close
in interface AutoCloseable
close
in class Connection
public void resetState()
public void eval(byte[] script, byte[] keyCount, byte[][] params)
public void eval(byte[] script, int keyCount, byte[]... params)
public void evalsha(byte[] sha1, byte[] keyCount, byte[]... params)
public void evalsha(byte[] sha1, int keyCount, byte[]... params)
public void scriptFlush()
public void scriptExists(byte[]... sha1)
public void scriptLoad(byte[] script)
public void scriptKill()
public void slowlogGet()
public void slowlogGet(long entries)
public void slowlogReset()
public void slowlogLen()
public void objectRefcount(byte[] key)
public void objectIdletime(byte[] key)
public void objectEncoding(byte[] key)
public void bitcount(byte[] key)
public void bitcount(byte[] key, long start, long end)
public void bitop(BitOP op, byte[] destKey, byte[]... srcKeys)
public void sentinel(byte[]... args)
public void dump(byte[] key)
public void restore(byte[] key, int ttl, byte[] serializedValue)
@Deprecated public void pexpire(byte[] key, int milliseconds)
public void pexpire(byte[] key, long milliseconds)
public void pexpireAt(byte[] key, long millisecondsTimestamp)
public void pttl(byte[] key)
public void psetex(byte[] key, int milliseconds, byte[] value)
public void set(byte[] key, byte[] value, byte[] nxxx)
public void set(byte[] key, byte[] value, byte[] nxxx, byte[] expx, int time)
public void srandmember(byte[] key, int count)
public void clientKill(byte[] client)
public void clientGetname()
public void clientList()
public void clientSetname(byte[] name)
public void time()
public void migrate(byte[] host, int port, byte[] key, int destinationDb, int timeout)
public void hincrByFloat(byte[] key, byte[] field, double increment)
@Deprecated public void scan(int cursor, ScanParams params)
@Deprecated public void hscan(byte[] key, int cursor, ScanParams params)
@Deprecated public void sscan(byte[] key, int cursor, ScanParams params)
@Deprecated public void zscan(byte[] key, int cursor, ScanParams params)
public void scan(byte[] cursor, ScanParams params)
public void hscan(byte[] key, byte[] cursor, ScanParams params)
public void sscan(byte[] key, byte[] cursor, ScanParams params)
public void zscan(byte[] key, byte[] cursor, ScanParams params)
public void waitReplicas(int replicas, long timeout)
public void cluster(byte[]... args)
public void asking()
public void pfadd(byte[] key, byte[]... elements)
public void pfcount(byte[] key)
public void pfcount(byte[]... keys)
public void pfmerge(byte[] destkey, byte[]... sourcekeys)
Copyright © 2015. All rights reserved.