public class BinaryClient extends Connection
构造器和说明 |
---|
BinaryClient() |
BinaryClient(HostAndPort hostPort,
JedisClientConfig clientConfig) |
BinaryClient(JedisSocketFactory jedisSocketFactory) |
BinaryClient(java.lang.String host)
已过时。
This constructor will be removed in future. It can be replaced with
BinaryClient(java.lang.String, int) with the host and Protocol.DEFAULT_PORT . |
BinaryClient(java.lang.String host,
int port) |
BinaryClient(java.lang.String host,
int port,
boolean ssl)
已过时。
This constructor will be removed in future. Use
BinaryClient(redis.clients.jedis.HostAndPort, redis.clients.jedis.JedisClientConfig) . |
BinaryClient(java.lang.String host,
int port,
boolean ssl,
javax.net.ssl.SSLSocketFactory sslSocketFactory,
javax.net.ssl.SSLParameters sslParameters,
javax.net.ssl.HostnameVerifier hostnameVerifier)
已过时。
This constructor will be removed in future. Use
BinaryClient(redis.clients.jedis.HostAndPort, redis.clients.jedis.JedisClientConfig) . |
限定符和类型 | 方法和说明 |
---|---|
void |
aclCat() |
void |
aclCat(byte[] category) |
void |
aclDelUser(byte[] name) |
void |
aclGenPass() |
void |
aclGetUser(byte[] name) |
void |
aclList() |
void |
aclLoad() |
void |
aclLog() |
void |
aclLog(byte[] option) |
void |
aclLog(int limit) |
void |
aclSave() |
void |
aclSetUser(byte[] name) |
void |
aclSetUser(byte[] name,
byte[][] parameters) |
void |
aclUsers() |
void |
aclWhoAmI() |
void |
append(byte[] key,
byte[] value) |
void |
asking() |
void |
auth(java.lang.String password) |
void |
auth(java.lang.String user,
java.lang.String password) |
void |
bgrewriteaof() |
void |
bgsave() |
void |
bitcount(byte[] key) |
void |
bitcount(byte[] key,
long start,
long end) |
void |
bitfield(byte[] key,
byte[]... value) |
void |
bitfieldReadonly(byte[] key,
byte[]... arguments) |
void |
bitop(BitOP op,
byte[] destKey,
byte[]... srcKeys) |
void |
bitpos(byte[] key,
boolean value,
BitPosParams params) |
void |
blmove(byte[] srcKey,
byte[] dstKey,
ListDirection from,
ListDirection to,
double timeout) |
void |
blpop(byte[][] args) |
void |
blpop(double timeout,
byte[]... keys) |
void |
blpop(int timeout,
byte[]... keys) |
void |
brpop(byte[][] args) |
void |
brpop(double timeout,
byte[]... keys) |
void |
brpop(int timeout,
byte[]... keys) |
void |
brpoplpush(byte[] source,
byte[] destination,
int timeout) |
void |
bzpopmax(double timeout,
byte[]... keys) |
void |
bzpopmin(double timeout,
byte[]... keys) |
void |
clientGetname() |
void |
clientId() |
void |
clientInfo() |
void |
clientKill(byte[] ipPort) |
void |
clientKill(ClientKillParams params) |
void |
clientKill(java.lang.String ip,
int port) |
void |
clientList() |
void |
clientList(long... clientIds) |
void |
clientPause(long timeout) |
void |
clientSetname(byte[] name) |
void |
clientUnblock(long clientId,
UnblockType unblockType) |
void |
close() |
void |
cluster(byte[]... args) |
void |
configGet(byte[] pattern) |
void |
configResetStat() |
void |
configRewrite() |
void |
configSet(byte[] parameter,
byte[] value) |
void |
connect() |
void |
copy(byte[] srcKey,
byte[] dstKey,
boolean replace) |
void |
copy(byte[] srcKey,
byte[] dstKey,
int db,
boolean replace) |
void |
dbSize() |
void |
debug(DebugParams params) |
void |
decr(byte[] key) |
void |
decrBy(byte[] key,
long decrement) |
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[]... keys) |
void |
expire(byte[] key,
int seconds)
已过时。
Use
expire(byte[], long) . |
void |
expire(byte[] key,
long seconds) |
void |
expireAt(byte[] key,
long unixTime) |
void |
flushAll() |
void |
flushAll(FlushMode flushMode) |
void |
flushDB() |
void |
flushDB(FlushMode flushMode) |
void |
geoadd(byte[] key,
double longitude,
double latitude,
byte[] member) |
void |
geoadd(byte[] key,
GeoAddParams params,
java.util.Map<byte[],GeoCoordinate> memberCoordinateMap) |
void |
geoadd(byte[] key,
java.util.Map<byte[],GeoCoordinate> memberCoordinateMap) |
void |
geodist(byte[] key,
byte[] member1,
byte[] member2) |
void |
geodist(byte[] key,
byte[] member1,
byte[] member2,
GeoUnit unit) |
void |
geohash(byte[] key,
byte[]... members) |
void |
geopos(byte[] key,
byte[][] members) |
void |
georadius(byte[] key,
double longitude,
double latitude,
double radius,
GeoUnit unit) |
void |
georadius(byte[] key,
double longitude,
double latitude,
double radius,
GeoUnit unit,
GeoRadiusParam param) |
void |
georadiusByMember(byte[] key,
byte[] member,
double radius,
GeoUnit unit) |
void |
georadiusByMember(byte[] key,
byte[] member,
double radius,
GeoUnit unit,
GeoRadiusParam param) |
void |
georadiusByMemberReadonly(byte[] key,
byte[] member,
double radius,
GeoUnit unit) |
void |
georadiusByMemberReadonly(byte[] key,
byte[] member,
double radius,
GeoUnit unit,
GeoRadiusParam param) |
void |
georadiusByMemberStore(byte[] key,
byte[] member,
double radius,
GeoUnit unit,
GeoRadiusParam param,
GeoRadiusStoreParam storeParam) |
void |
georadiusReadonly(byte[] key,
double longitude,
double latitude,
double radius,
GeoUnit unit) |
void |
georadiusReadonly(byte[] key,
double longitude,
double latitude,
double radius,
GeoUnit unit,
GeoRadiusParam param) |
void |
georadiusStore(byte[] key,
double longitude,
double latitude,
double radius,
GeoUnit unit,
GeoRadiusParam param,
GeoRadiusStoreParam storeParam) |
void |
get(byte[] key) |
void |
getbit(byte[] key,
long offset) |
int |
getDB() |
void |
getDel(byte[] key) |
void |
getEx(byte[] key,
GetExParams params) |
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,
java.util.Map<byte[],byte[]> hash) |
void |
hrandfield(byte[] key) |
void |
hrandfield(byte[] key,
long count) |
void |
hrandfieldWithValues(byte[] key,
long count) |
void |
hscan(byte[] key,
byte[] cursor,
ScanParams params) |
void |
hset(byte[] key,
byte[] field,
byte[] value) |
void |
hset(byte[] key,
java.util.Map<byte[],byte[]> hash) |
void |
hsetnx(byte[] key,
byte[] field,
byte[] value) |
void |
hstrlen(byte[] key,
byte[] field) |
void |
hvals(byte[] key) |
void |
incr(byte[] key) |
void |
incrBy(byte[] key,
long increment) |
void |
incrByFloat(byte[] key,
double increment) |
void |
info() |
void |
info(java.lang.String section) |
boolean |
isInMulti() |
boolean |
isInWatch() |
void |
keys(byte[] pattern) |
void |
lastsave() |
void |
lindex(byte[] key,
long index) |
void |
linsert(byte[] key,
ListPosition where,
byte[] pivot,
byte[] value) |
void |
llen(byte[] key) |
void |
lmove(byte[] srcKey,
byte[] dstKey,
ListDirection from,
ListDirection to) |
void |
lpop(byte[] key) |
void |
lpop(byte[] key,
int count) |
void |
lpos(byte[] key,
byte[] element) |
void |
lpos(byte[] key,
byte[] element,
LPosParams params) |
void |
lpos(byte[] key,
byte[] element,
LPosParams params,
long count) |
void |
lpush(byte[] key,
byte[]... strings) |
void |
lpushx(byte[] key,
byte[]... string) |
void |
lrange(byte[] key,
long start,
long stop) |
void |
lrem(byte[] key,
long count,
byte[] value) |
void |
lset(byte[] key,
long index,
byte[] value) |
void |
ltrim(byte[] key,
long start,
long stop) |
void |
memoryDoctor() |
void |
memoryUsage(byte[] key) |
void |
memoryUsage(byte[] key,
int samples) |
void |
mget(byte[]... keys) |
void |
migrate(java.lang.String host,
int port,
byte[] key,
int destinationDb,
int timeout) |
void |
migrate(java.lang.String host,
int port,
int destinationDB,
int timeout,
MigrateParams params,
byte[]... keys) |
void |
moduleList() |
void |
moduleLoad(byte[] path) |
void |
moduleUnload(byte[] name) |
void |
monitor() |
void |
move(byte[] key,
int dbIndex) |
void |
mset(byte[]... keysvalues) |
void |
msetnx(byte[]... keysvalues) |
void |
multi() |
void |
objectEncoding(byte[] key) |
void |
objectFreq(byte[] key) |
void |
objectHelp() |
void |
objectIdletime(byte[] key) |
void |
objectRefcount(byte[] key) |
void |
persist(byte[] key) |
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 |
ping(byte[] message) |
void |
psetex(byte[] key,
long 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 |
readonly() |
void |
rename(byte[] oldkey,
byte[] newkey) |
void |
renamenx(byte[] oldkey,
byte[] newkey) |
void |
resetState() |
void |
restore(byte[] key,
int ttl,
byte[] serializedValue)
已过时。
|
void |
restore(byte[] key,
long ttl,
byte[] serializedValue) |
void |
restore(byte[] key,
long ttl,
byte[] serializedValue,
RestoreParams params) |
void |
restoreReplace(byte[] key,
int ttl,
byte[] serializedValue)
已过时。
|
void |
restoreReplace(byte[] key,
long ttl,
byte[] serializedValue)
|
void |
rpop(byte[] key) |
void |
rpop(byte[] key,
int count) |
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 |
scard(byte[] key) |
void |
scriptExists(byte[]... sha1) |
void |
scriptFlush() |
void |
scriptFlush(FlushMode flushMode) |
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,
SetParams params) |
void |
setbit(byte[] key,
long offset,
boolean value) |
void |
setbit(byte[] key,
long offset,
byte[] value) |
void |
setDb(int db)
This method should be called only after a successful SELECT command.
|
void |
setex(byte[] key,
int seconds,
byte[] value)
已过时。
|
void |
setex(byte[] key,
long seconds,
byte[] value) |
void |
setnx(byte[] key,
byte[] value) |
void |
setPassword(java.lang.String password)
已过时。
This method will be removed in future. Because this class will be restricted from
holding any user data.
|
void |
setrange(byte[] key,
long offset,
byte[] value) |
void |
setUser(java.lang.String user)
已过时。
This method will be removed in future. Because this class will be restricted from
holding any user data.
|
void |
shutdown() |
void |
sinter(byte[]... keys) |
void |
sinterstore(byte[] dstkey,
byte[]... keys) |
void |
sismember(byte[] key,
byte[] member) |
void |
slaveof(java.lang.String host,
int port) |
void |
slaveofNoOne() |
void |
slowlogGet() |
void |
slowlogGet(long entries) |
void |
slowlogLen() |
void |
slowlogReset() |
void |
smembers(byte[] key) |
void |
smismember(byte[] key,
byte[]... members) |
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 |
spop(byte[] key,
long count) |
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 |
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 |
swapDB(int index1,
int index2) |
void |
sync()
已过时。
This will be removed in next major release.
|
void |
time() |
void |
touch(byte[]... keys) |
void |
ttl(byte[] key) |
void |
type(byte[] key) |
void |
unlink(byte[]... keys) |
void |
unsubscribe() |
void |
unsubscribe(byte[]... channels) |
void |
unwatch() |
void |
waitReplicas(int replicas,
long timeout) |
void |
watch(byte[]... keys) |
void |
xack(byte[] key,
byte[] group,
byte[]... ids) |
void |
xadd(byte[] key,
byte[] id,
java.util.Map<byte[],byte[]> hash,
long maxLen,
boolean approximateLength) |
void |
xadd(byte[] key,
java.util.Map<byte[],byte[]> hash,
XAddParams xAddParams) |
void |
xclaim(byte[] key,
byte[] groupname,
byte[] consumername,
long minIdleTime,
long newIdleTime,
int retries,
boolean force,
byte[][] ids) |
void |
xclaim(byte[] key,
byte[] groupname,
byte[] consumername,
long minIdleTime,
XClaimParams params,
byte[]... ids) |
void |
xclaimJustId(byte[] key,
byte[] groupname,
byte[] consumername,
long minIdleTime,
XClaimParams params,
byte[]... ids) |
void |
xdel(byte[] key,
byte[]... ids) |
void |
xgroupCreate(byte[] key,
byte[] groupname,
byte[] id,
boolean makeStream) |
void |
xgroupDelConsumer(byte[] key,
byte[] groupname,
byte[] consumerName) |
void |
xgroupDestroy(byte[] key,
byte[] groupname) |
void |
xgroupSetID(byte[] key,
byte[] groupname,
byte[] id) |
void |
xinfoConsumers(byte[] key,
byte[] group) |
void |
xinfoGroup(byte[] key) |
void |
xinfoStream(byte[] key) |
void |
xlen(byte[] key) |
void |
xpending(byte[] key,
byte[] groupname) |
void |
xpending(byte[] key,
byte[] groupname,
byte[] start,
byte[] end,
int count,
byte[] consumername) |
void |
xpending(byte[] key,
byte[] groupname,
XPendingParams params) |
void |
xrange(byte[] key,
byte[] start,
byte[] end) |
void |
xrange(byte[] key,
byte[] start,
byte[] end,
int count) |
void |
xrange(byte[] key,
byte[] start,
byte[] end,
long count)
已过时。
|
void |
xread(int count,
long block,
java.util.Map<byte[],byte[]> streams)
已过时。
This method will be removed due to bug regarding
block param. Use
xread(redis.clients.jedis.params.XReadParams, java.util.Map.Entry...) . |
void |
xread(XReadParams params,
java.util.Map.Entry<byte[],byte[]>... streams) |
void |
xreadGroup(byte[] groupname,
byte[] consumer,
int count,
long block,
boolean noAck,
java.util.Map<byte[],byte[]> streams)
已过时。
This method will be removed due to bug regarding
block param. Use
#xreadGroup(byte..., byte..., redis.clients.jedis.params.XReadGroupParams, java.util.Map.Entry...) . |
void |
xreadGroup(byte[] groupname,
byte[] consumer,
XReadGroupParams params,
java.util.Map.Entry<byte[],byte[]>... streams) |
void |
xrevrange(byte[] key,
byte[] end,
byte[] start) |
void |
xrevrange(byte[] key,
byte[] end,
byte[] start,
int count) |
void |
xtrim(byte[] key,
long maxLen,
boolean approximateLength) |
void |
xtrim(byte[] key,
XTrimParams params) |
void |
zadd(byte[] key,
double score,
byte[] member) |
void |
zadd(byte[] key,
double score,
byte[] member,
ZAddParams params) |
void |
zadd(byte[] key,
java.util.Map<byte[],java.lang.Double> scoreMembers) |
void |
zadd(byte[] key,
java.util.Map<byte[],java.lang.Double> scoreMembers,
ZAddParams params) |
void |
zaddIncr(byte[] key,
double score,
byte[] member,
ZAddParams params) |
void |
zcard(byte[] key) |
void |
zcount(byte[] key,
byte[] min,
byte[] max) |
void |
zcount(byte[] key,
double min,
double max) |
void |
zdiff(byte[]... keys) |
void |
zdiffStore(byte[] dstkey,
byte[]... keys) |
void |
zdiffWithScores(byte[]... keys) |
void |
zincrby(byte[] key,
double increment,
byte[] member) |
void |
zincrby(byte[] key,
double increment,
byte[] member,
ZIncrByParams params) |
void |
zinter(ZParams params,
byte[]... keys) |
void |
zinterstore(byte[] dstkey,
byte[]... sets) |
void |
zinterstore(byte[] dstkey,
ZParams params,
byte[]... sets) |
void |
zinterWithScores(ZParams params,
byte[]... keys) |
void |
zlexcount(byte[] key,
byte[] min,
byte[] max) |
void |
zmscore(byte[] key,
byte[]... members) |
void |
zpopmax(byte[] key) |
void |
zpopmax(byte[] key,
int count) |
void |
zpopmin(byte[] key) |
void |
zpopmin(byte[] key,
long count) |
void |
zrandmember(byte[] key) |
void |
zrandmember(byte[] key,
long count) |
void |
zrandmemberWithScores(byte[] key,
long count) |
void |
zrange(byte[] key,
long start,
long stop) |
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 |
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 |
zrangeWithScores(byte[] key,
long start,
long stop) |
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 stop) |
void |
zremrangeByScore(byte[] key,
byte[] min,
byte[] max) |
void |
zremrangeByScore(byte[] key,
double min,
double max) |
void |
zrevrange(byte[] key,
long start,
long stop) |
void |
zrevrangeByLex(byte[] key,
byte[] max,
byte[] min) |
void |
zrevrangeByLex(byte[] key,
byte[] max,
byte[] min,
int offset,
int count) |
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 |
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 |
zrevrangeWithScores(byte[] key,
long start,
long stop) |
void |
zrevrank(byte[] key,
byte[] member) |
void |
zscan(byte[] key,
byte[] cursor,
ScanParams params) |
void |
zscore(byte[] key,
byte[] member) |
void |
zunion(ZParams params,
byte[]... keys) |
void |
zunionstore(byte[] dstkey,
byte[]... sets) |
void |
zunionstore(byte[] dstkey,
ZParams params,
byte[]... sets) |
void |
zunionWithScores(ZParams params,
byte[]... keys) |
getBinaryBulkReply, getBinaryMultiBulkReply, getBulkReply, getConnectionTimeout, getHost, getIntegerMultiBulkReply, getIntegerReply, getMany, getMultiBulkReply, getObjectMultiBulkReply, getOne, getPort, getRawObjectMultiBulkReply, getSocket, getSoTimeout, getStatusCodeReply, getUnflushedObjectMultiBulkReply, isBroken, isConnected, rollbackTimeout, sendCommand, sendCommand, sendCommand, setConnectionTimeout, setHost, setInfiniteSoTimeout, setPort, setSoTimeout, setTimeoutInfinite, toString
public BinaryClient()
@Deprecated public BinaryClient(java.lang.String host)
BinaryClient(java.lang.String, int)
with the host and Protocol.DEFAULT_PORT
.host
- public BinaryClient(java.lang.String host, int port)
@Deprecated public BinaryClient(java.lang.String host, int port, boolean ssl)
BinaryClient(redis.clients.jedis.HostAndPort, redis.clients.jedis.JedisClientConfig)
.@Deprecated public BinaryClient(java.lang.String host, int port, boolean ssl, javax.net.ssl.SSLSocketFactory sslSocketFactory, javax.net.ssl.SSLParameters sslParameters, javax.net.ssl.HostnameVerifier hostnameVerifier)
BinaryClient(redis.clients.jedis.HostAndPort, redis.clients.jedis.JedisClientConfig)
.public BinaryClient(HostAndPort hostPort, JedisClientConfig clientConfig)
public BinaryClient(JedisSocketFactory jedisSocketFactory)
public boolean isInMulti()
public boolean isInWatch()
@Deprecated public void setUser(java.lang.String user)
user
- @Deprecated public void setPassword(java.lang.String password)
password
- public void setDb(int db)
db
- public int getDB()
public void connect()
connect
在类中 Connection
public void disconnect()
disconnect
在类中 Connection
public void close()
close
在接口中 java.io.Closeable
close
在接口中 java.lang.AutoCloseable
close
在类中 Connection
public void resetState()
public void copy(byte[] srcKey, byte[] dstKey, boolean replace)
public void copy(byte[] srcKey, byte[] dstKey, int db, boolean replace)
public void ping()
public void ping(byte[] message)
public void set(byte[] key, byte[] value)
public void set(byte[] key, byte[] value, SetParams params)
public void get(byte[] key)
public void getDel(byte[] key)
public void getEx(byte[] key, GetExParams params)
public void quit()
public void exists(byte[]... keys)
public void del(byte[]... keys)
public void unlink(byte[]... keys)
public void type(byte[] key)
public void flushDB()
public void flushDB(FlushMode flushMode)
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()
@Deprecated public void expire(byte[] key, int seconds)
expire(byte[], long)
.public void expire(byte[] key, long seconds)
public void expireAt(byte[] key, long unixTime)
public void ttl(byte[] key)
public void touch(byte[]... keys)
public void select(int index)
public void swapDB(int index1, int index2)
public void move(byte[] key, int dbIndex)
public void flushAll()
public void flushAll(FlushMode flushMode)
public void getSet(byte[] key, byte[] value)
public void mget(byte[]... keys)
public void setnx(byte[] key, byte[] value)
@Deprecated public void setex(byte[] key, int seconds, byte[] value)
setex(byte[], long, byte[])
.public void setex(byte[] key, long seconds, byte[] value)
public void mset(byte[]... keysvalues)
public void msetnx(byte[]... keysvalues)
public void decrBy(byte[] key, long decrement)
public void decr(byte[] key)
public void incrBy(byte[] key, long increment)
public void incrByFloat(byte[] key, double increment)
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 hset(byte[] key, java.util.Map<byte[],byte[]> hash)
public void hget(byte[] key, byte[] field)
public void hsetnx(byte[] key, byte[] field, byte[] value)
public void hmset(byte[] key, java.util.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 hrandfield(byte[] key)
public void hrandfield(byte[] key, long count)
public void hrandfieldWithValues(byte[] key, long count)
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 stop)
public void ltrim(byte[] key, long start, long stop)
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 lpop(byte[] key, int count)
public void lpos(byte[] key, byte[] element)
public void lpos(byte[] key, byte[] element, LPosParams params)
public void lpos(byte[] key, byte[] element, LPosParams params, long count)
public void rpop(byte[] key)
public void rpop(byte[] key, int count)
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 spop(byte[] key, long count)
public void smove(byte[] srckey, byte[] dstkey, byte[] member)
public void scard(byte[] key)
public void sismember(byte[] key, byte[] member)
public void smismember(byte[] key, byte[]... members)
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 zadd(byte[] key, double score, byte[] member, ZAddParams params)
public void zadd(byte[] key, java.util.Map<byte[],java.lang.Double> scoreMembers)
public void zadd(byte[] key, java.util.Map<byte[],java.lang.Double> scoreMembers, ZAddParams params)
public void zdiff(byte[]... keys)
public void zdiffWithScores(byte[]... keys)
public void zaddIncr(byte[] key, double score, byte[] member, ZAddParams params)
public void zdiffStore(byte[] dstkey, byte[]... keys)
public void zrange(byte[] key, long start, long stop)
public void zrem(byte[] key, byte[]... members)
public void zincrby(byte[] key, double increment, byte[] member)
public void zincrby(byte[] key, double increment, byte[] member, ZIncrByParams params)
public void zrank(byte[] key, byte[] member)
public void zrevrank(byte[] key, byte[] member)
public void zrevrange(byte[] key, long start, long stop)
public void zrangeWithScores(byte[] key, long start, long stop)
public void zrevrangeWithScores(byte[] key, long start, long stop)
public void zrandmember(byte[] key)
public void zrandmember(byte[] key, long count)
public void zrandmemberWithScores(byte[] key, long count)
public void zcard(byte[] key)
public void zscore(byte[] key, byte[] member)
public void zmscore(byte[] key, byte[]... members)
public void zpopmax(byte[] key)
public void zpopmax(byte[] key, int count)
public void zpopmin(byte[] key)
public void zpopmin(byte[] key, long count)
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 sort(byte[] key, SortingParams sortingParameters, byte[] dstkey)
public void sort(byte[] key, byte[] dstkey)
public void lmove(byte[] srcKey, byte[] dstKey, ListDirection from, ListDirection to)
public void blmove(byte[] srcKey, byte[] dstKey, ListDirection from, ListDirection to, double timeout)
public void blpop(byte[][] args)
public void blpop(int timeout, byte[]... keys)
public void blpop(double timeout, byte[]... keys)
public void brpop(byte[][] args)
public void brpop(int timeout, byte[]... keys)
public void brpop(double timeout, byte[]... keys)
public void bzpopmax(double timeout, byte[]... keys)
public void bzpopmin(double timeout, byte[]... keys)
public void auth(java.lang.String password)
public void auth(java.lang.String user, java.lang.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 zrangeByScoreWithScores(byte[] key, double min, double max)
public void zrevrangeByScoreWithScores(byte[] key, double max, double min)
public void zrangeByScoreWithScores(byte[] key, double min, double max, int offset, int count)
public void zrevrangeByScoreWithScores(byte[] key, double max, double 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 stop)
public void zremrangeByScore(byte[] key, double min, double max)
public void zremrangeByScore(byte[] key, byte[] min, byte[] max)
public void zunion(ZParams params, byte[]... keys)
public void zunionWithScores(ZParams params, byte[]... keys)
public void zunionstore(byte[] dstkey, byte[]... sets)
public void zunionstore(byte[] dstkey, ZParams params, byte[]... sets)
public void zinter(ZParams params, byte[]... keys)
public void zinterWithScores(ZParams params, byte[]... keys)
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 zrevrangeByLex(byte[] key, byte[] max, byte[] min)
public void zrevrangeByLex(byte[] key, byte[] max, byte[] min, 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(java.lang.String section)
public void monitor()
public void slaveof(java.lang.String host, int port)
public void slaveofNoOne()
public void configGet(byte[] pattern)
public void configSet(byte[] parameter, byte[] value)
public void strlen(byte[] key)
@Deprecated 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, ListPosition where, byte[] pivot, byte[] value)
public void debug(DebugParams params)
public void brpoplpush(byte[] source, byte[] destination, int timeout)
public void configResetStat()
public void configRewrite()
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 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 scriptFlush(FlushMode flushMode)
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 objectHelp()
public void objectFreq(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)
@Deprecated public void restore(byte[] key, int ttl, byte[] serializedValue)
restore(byte[], long, byte[])
.public void restore(byte[] key, long ttl, byte[] serializedValue)
@Deprecated public void restoreReplace(byte[] key, int ttl, byte[] serializedValue)
restoreReplace(byte[], long, byte[])
.@Deprecated public void restoreReplace(byte[] key, long ttl, byte[] serializedValue)
public void restore(byte[] key, long ttl, byte[] serializedValue, RestoreParams params)
public void pexpire(byte[] key, long milliseconds)
public void pexpireAt(byte[] key, long millisecondsTimestamp)
public void pttl(byte[] key)
public void psetex(byte[] key, long milliseconds, byte[] value)
public void srandmember(byte[] key, int count)
public void memoryDoctor()
public void memoryUsage(byte[] key)
public void memoryUsage(byte[] key, int samples)
public void clientKill(byte[] ipPort)
public void clientKill(java.lang.String ip, int port)
public void clientKill(ClientKillParams params)
public void clientGetname()
public void clientList()
public void clientList(long... clientIds)
public void clientInfo()
public void clientSetname(byte[] name)
public void clientPause(long timeout)
public void clientId()
public void clientUnblock(long clientId, UnblockType unblockType)
public void time()
public void migrate(java.lang.String host, int port, byte[] key, int destinationDb, int timeout)
public void migrate(java.lang.String host, int port, int destinationDB, int timeout, MigrateParams params, byte[]... keys)
public void hincrByFloat(byte[] key, byte[] field, double increment)
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)
public void readonly()
public void geoadd(byte[] key, double longitude, double latitude, byte[] member)
public void geoadd(byte[] key, java.util.Map<byte[],GeoCoordinate> memberCoordinateMap)
public void geoadd(byte[] key, GeoAddParams params, java.util.Map<byte[],GeoCoordinate> memberCoordinateMap)
public void geodist(byte[] key, byte[] member1, byte[] member2)
public void geodist(byte[] key, byte[] member1, byte[] member2, GeoUnit unit)
public void geohash(byte[] key, byte[]... members)
public void geopos(byte[] key, byte[][] members)
public void georadius(byte[] key, double longitude, double latitude, double radius, GeoUnit unit)
public void georadiusReadonly(byte[] key, double longitude, double latitude, double radius, GeoUnit unit)
public void georadius(byte[] key, double longitude, double latitude, double radius, GeoUnit unit, GeoRadiusParam param)
public void georadiusStore(byte[] key, double longitude, double latitude, double radius, GeoUnit unit, GeoRadiusParam param, GeoRadiusStoreParam storeParam)
public void georadiusReadonly(byte[] key, double longitude, double latitude, double radius, GeoUnit unit, GeoRadiusParam param)
public void georadiusByMember(byte[] key, byte[] member, double radius, GeoUnit unit)
public void georadiusByMemberReadonly(byte[] key, byte[] member, double radius, GeoUnit unit)
public void georadiusByMember(byte[] key, byte[] member, double radius, GeoUnit unit, GeoRadiusParam param)
public void georadiusByMemberStore(byte[] key, byte[] member, double radius, GeoUnit unit, GeoRadiusParam param, GeoRadiusStoreParam storeParam)
public void georadiusByMemberReadonly(byte[] key, byte[] member, double radius, GeoUnit unit, GeoRadiusParam param)
public void moduleLoad(byte[] path)
public void moduleList()
public void moduleUnload(byte[] name)
public void aclWhoAmI()
public void aclGenPass()
public void aclList()
public void aclUsers()
public void aclCat()
public void aclCat(byte[] category)
public void aclLog()
public void aclLog(int limit)
public void aclLog(byte[] option)
public void aclSetUser(byte[] name)
public void aclGetUser(byte[] name)
public void aclSetUser(byte[] name, byte[][] parameters)
public void aclDelUser(byte[] name)
public void aclLoad()
public void aclSave()
public void bitfield(byte[] key, byte[]... value)
public void bitfieldReadonly(byte[] key, byte[]... arguments)
public void hstrlen(byte[] key, byte[] field)
public void xadd(byte[] key, byte[] id, java.util.Map<byte[],byte[]> hash, long maxLen, boolean approximateLength)
public void xadd(byte[] key, java.util.Map<byte[],byte[]> hash, XAddParams xAddParams)
public void xlen(byte[] key)
public void xrange(byte[] key, byte[] start, byte[] end)
@Deprecated public void xrange(byte[] key, byte[] start, byte[] end, long count)
xrange(byte[], byte[], byte[], int)
.public void xrange(byte[] key, byte[] start, byte[] end, int count)
public void xrevrange(byte[] key, byte[] end, byte[] start)
public void xrevrange(byte[] key, byte[] end, byte[] start, int count)
@Deprecated public void xread(int count, long block, java.util.Map<byte[],byte[]> streams)
block
param. Use
xread(redis.clients.jedis.params.XReadParams, java.util.Map.Entry...)
.public void xread(XReadParams params, java.util.Map.Entry<byte[],byte[]>... streams)
public void xack(byte[] key, byte[] group, byte[]... ids)
public void xgroupCreate(byte[] key, byte[] groupname, byte[] id, boolean makeStream)
public void xgroupSetID(byte[] key, byte[] groupname, byte[] id)
public void xgroupDestroy(byte[] key, byte[] groupname)
public void xgroupDelConsumer(byte[] key, byte[] groupname, byte[] consumerName)
public void xdel(byte[] key, byte[]... ids)
public void xtrim(byte[] key, long maxLen, boolean approximateLength)
public void xtrim(byte[] key, XTrimParams params)
@Deprecated public void xreadGroup(byte[] groupname, byte[] consumer, int count, long block, boolean noAck, java.util.Map<byte[],byte[]> streams)
block
param. Use
#xreadGroup(byte..., byte..., redis.clients.jedis.params.XReadGroupParams, java.util.Map.Entry...)
.public void xreadGroup(byte[] groupname, byte[] consumer, XReadGroupParams params, java.util.Map.Entry<byte[],byte[]>... streams)
public void xpending(byte[] key, byte[] groupname)
public void xpending(byte[] key, byte[] groupname, byte[] start, byte[] end, int count, byte[] consumername)
public void xpending(byte[] key, byte[] groupname, XPendingParams params)
public void xclaim(byte[] key, byte[] groupname, byte[] consumername, long minIdleTime, long newIdleTime, int retries, boolean force, byte[][] ids)
public void xclaim(byte[] key, byte[] groupname, byte[] consumername, long minIdleTime, XClaimParams params, byte[]... ids)
public void xclaimJustId(byte[] key, byte[] groupname, byte[] consumername, long minIdleTime, XClaimParams params, byte[]... ids)
public void xinfoStream(byte[] key)
public void xinfoGroup(byte[] key)
public void xinfoConsumers(byte[] key, byte[] group)