Package redis.clients.jedis
Class MultiKeyPipelineBase
- java.lang.Object
-
- redis.clients.jedis.Queable
-
- redis.clients.jedis.PipelineBase
-
- redis.clients.jedis.MultiKeyPipelineBase
-
- All Implemented Interfaces:
BasicRedisPipeline
,BinaryRedisPipeline
,BinaryScriptingCommandsPipeline
,ClusterPipeline
,MultiKeyBinaryRedisPipeline
,MultiKeyCommandsPipeline
,RedisPipeline
,ScriptingCommandsPipeline
- Direct Known Subclasses:
Pipeline
,Transaction
public abstract class MultiKeyPipelineBase extends PipelineBase implements MultiKeyBinaryRedisPipeline, MultiKeyCommandsPipeline, ClusterPipeline, BinaryScriptingCommandsPipeline, ScriptingCommandsPipeline, BasicRedisPipeline
-
-
Constructor Summary
Constructors Constructor Description MultiKeyPipelineBase()
-
Method Summary
-
Methods inherited from class redis.clients.jedis.PipelineBase
append, append, bitcount, bitcount, bitcount, bitcount, bitfield, bitfield, bitfieldReadonly, bitfieldReadonly, bitpos, bitpos, bitpos, bitpos, blpop, blpop, brpop, brpop, decr, decr, decrBy, decrBy, del, del, dump, dump, echo, echo, exists, exists, expire, expire, expireAt, expireAt, geoadd, geoadd, geoadd, geoadd, geodist, geodist, geodist, geodist, geohash, geohash, geopos, geopos, georadius, georadius, georadius, georadius, georadiusByMember, georadiusByMember, georadiusByMember, georadiusByMember, georadiusByMemberReadonly, georadiusByMemberReadonly, georadiusByMemberReadonly, georadiusByMemberReadonly, georadiusReadonly, georadiusReadonly, georadiusReadonly, georadiusReadonly, get, get, getbit, getbit, getClient, getClient, getrange, getrange, getSet, getSet, hdel, hdel, hexists, hexists, hget, hget, hgetAll, hgetAll, hincrBy, hincrBy, hincrByFloat, hincrByFloat, hkeys, hkeys, hlen, hlen, hmget, hmget, hmset, hmset, hset, hset, hset, hset, hsetnx, hsetnx, hstrlen, hstrlen, hvals, hvals, incr, incr, incrBy, incrBy, incrByFloat, incrByFloat, lindex, lindex, linsert, linsert, llen, llen, lpop, lpop, lpop, lpop, lpos, lpos, lpos, lpos, lpos, lpos, lpush, lpush, lpushx, lpushx, lrange, lrange, lrem, lrem, lset, lset, ltrim, ltrim, migrate, migrate, move, move, objectEncoding, objectEncoding, objectFreq, objectFreq, objectIdletime, objectIdletime, objectRefcount, objectRefcount, persist, persist, pexpire, pexpire, pexpireAt, pexpireAt, pfadd, pfadd, pfcount, pfcount, psetex, psetex, pttl, pttl, restore, restore, restoreReplace, restoreReplace, rpop, rpop, rpop, rpop, rpush, rpush, rpushx, rpushx, sadd, sadd, scard, scard, sendCommand, sendCommand, set, set, set, set, setbit, setbit, setex, setex, setnx, setnx, setrange, setrange, sismember, sismember, smembers, smembers, smismember, smismember, sort, sort, sort, sort, spop, spop, spop, spop, srandmember, srandmember, srandmember, srandmember, srem, srem, strlen, strlen, substr, substr, touch, touch, ttl, ttl, type, type, unlink, unlink, xack, xack, xadd, xadd, xadd, xadd, xclaim, xclaim, xdel, xdel, xgroupCreate, xgroupCreate, xgroupDelConsumer, xgroupDelConsumer, xgroupDestroy, xgroupDestroy, xgroupSetID, xgroupSetID, xlen, xlen, xpending, xpending, xrange, xrange, xrevrange, xrevrange, xtrim, xtrim, zadd, zadd, zadd, zadd, zadd, zadd, zadd, zadd, zcard, zcard, zcount, zcount, zcount, zcount, zincrby, zincrby, zincrby, zincrby, zlexcount, zlexcount, zmscore, zmscore, zpopmax, zpopmax, zpopmax, zpopmax, zpopmin, zpopmin, zpopmin, zpopmin, zrange, zrange, zrangeByLex, zrangeByLex, zrangeByLex, zrangeByLex, zrangeByScore, zrangeByScore, zrangeByScore, zrangeByScore, zrangeByScore, zrangeByScore, zrangeByScore, zrangeByScore, zrangeByScoreWithScores, zrangeByScoreWithScores, zrangeByScoreWithScores, zrangeByScoreWithScores, zrangeByScoreWithScores, zrangeByScoreWithScores, zrangeByScoreWithScores, zrangeByScoreWithScores, zrangeWithScores, zrangeWithScores, zrank, zrank, zrem, zrem, zremrangeByLex, zremrangeByLex, zremrangeByRank, zremrangeByRank, zremrangeByScore, zremrangeByScore, zremrangeByScore, zremrangeByScore, zrevrange, zrevrange, zrevrangeByLex, zrevrangeByLex, zrevrangeByLex, zrevrangeByLex, zrevrangeByScore, zrevrangeByScore, zrevrangeByScore, zrevrangeByScore, zrevrangeByScore, zrevrangeByScore, zrevrangeByScore, zrevrangeByScore, zrevrangeByScoreWithScores, zrevrangeByScoreWithScores, zrevrangeByScoreWithScores, zrevrangeByScoreWithScores, zrevrangeByScoreWithScores, zrevrangeByScoreWithScores, zrevrangeByScoreWithScores, zrevrangeByScoreWithScores, zrevrangeWithScores, zrevrangeWithScores, zrevrank, zrevrank, zscore, zscore
-
Methods inherited from class redis.clients.jedis.Queable
clean, generateResponse, getPipelinedResponseLength, getResponse, hasPipelinedResponse
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface redis.clients.jedis.commands.BasicRedisPipeline
migrate
-
-
-
-
Field Detail
-
client
protected Client client
-
-
Method Detail
-
brpop
public Response<List<String>> brpop(String... args)
- Specified by:
brpop
in interfaceMultiKeyCommandsPipeline
-
blpop
public Response<List<String>> blpop(String... args)
- Specified by:
blpop
in interfaceMultiKeyCommandsPipeline
-
brpop
public Response<List<byte[]>> brpop(byte[]... args)
- Specified by:
brpop
in interfaceMultiKeyBinaryRedisPipeline
-
blpop
public Response<List<byte[]>> blpop(byte[]... args)
- Specified by:
blpop
in interfaceMultiKeyBinaryRedisPipeline
-
del
public Response<Long> del(String... keys)
- Specified by:
del
in interfaceMultiKeyCommandsPipeline
-
del
public Response<Long> del(byte[]... keys)
- Specified by:
del
in interfaceMultiKeyBinaryRedisPipeline
-
unlink
public Response<Long> unlink(String... keys)
- Specified by:
unlink
in interfaceMultiKeyCommandsPipeline
-
unlink
public Response<Long> unlink(byte[]... keys)
- Specified by:
unlink
in interfaceMultiKeyBinaryRedisPipeline
-
exists
public Response<Long> exists(String... keys)
- Specified by:
exists
in interfaceMultiKeyCommandsPipeline
-
exists
public Response<Long> exists(byte[]... keys)
- Specified by:
exists
in interfaceMultiKeyBinaryRedisPipeline
-
keys
public Response<Set<String>> keys(String pattern)
- Specified by:
keys
in interfaceMultiKeyCommandsPipeline
-
keys
public Response<Set<byte[]>> keys(byte[] pattern)
- Specified by:
keys
in interfaceMultiKeyBinaryRedisPipeline
-
mget
public Response<List<String>> mget(String... keys)
- Specified by:
mget
in interfaceMultiKeyCommandsPipeline
-
mget
public Response<List<byte[]>> mget(byte[]... keys)
- Specified by:
mget
in interfaceMultiKeyBinaryRedisPipeline
-
mset
public Response<String> mset(String... keysvalues)
- Specified by:
mset
in interfaceMultiKeyCommandsPipeline
-
mset
public Response<String> mset(byte[]... keysvalues)
- Specified by:
mset
in interfaceMultiKeyBinaryRedisPipeline
-
msetnx
public Response<Long> msetnx(String... keysvalues)
- Specified by:
msetnx
in interfaceMultiKeyCommandsPipeline
-
msetnx
public Response<Long> msetnx(byte[]... keysvalues)
- Specified by:
msetnx
in interfaceMultiKeyBinaryRedisPipeline
-
rename
public Response<String> rename(String oldkey, String newkey)
- Specified by:
rename
in interfaceMultiKeyCommandsPipeline
-
rename
public Response<String> rename(byte[] oldkey, byte[] newkey)
- Specified by:
rename
in interfaceMultiKeyBinaryRedisPipeline
-
renamenx
public Response<Long> renamenx(String oldkey, String newkey)
- Specified by:
renamenx
in interfaceMultiKeyCommandsPipeline
-
renamenx
public Response<Long> renamenx(byte[] oldkey, byte[] newkey)
- Specified by:
renamenx
in interfaceMultiKeyBinaryRedisPipeline
-
rpoplpush
public Response<String> rpoplpush(String srckey, String dstkey)
- Specified by:
rpoplpush
in interfaceMultiKeyCommandsPipeline
-
rpoplpush
public Response<byte[]> rpoplpush(byte[] srckey, byte[] dstkey)
- Specified by:
rpoplpush
in interfaceMultiKeyBinaryRedisPipeline
-
sdiff
public Response<Set<String>> sdiff(String... keys)
- Specified by:
sdiff
in interfaceMultiKeyCommandsPipeline
-
sdiff
public Response<Set<byte[]>> sdiff(byte[]... keys)
- Specified by:
sdiff
in interfaceMultiKeyBinaryRedisPipeline
-
sdiffstore
public Response<Long> sdiffstore(String dstkey, String... keys)
- Specified by:
sdiffstore
in interfaceMultiKeyCommandsPipeline
-
sdiffstore
public Response<Long> sdiffstore(byte[] dstkey, byte[]... keys)
- Specified by:
sdiffstore
in interfaceMultiKeyBinaryRedisPipeline
-
sinter
public Response<Set<String>> sinter(String... keys)
- Specified by:
sinter
in interfaceMultiKeyCommandsPipeline
-
sinter
public Response<Set<byte[]>> sinter(byte[]... keys)
- Specified by:
sinter
in interfaceMultiKeyBinaryRedisPipeline
-
sinterstore
public Response<Long> sinterstore(String dstkey, String... keys)
- Specified by:
sinterstore
in interfaceMultiKeyCommandsPipeline
-
sinterstore
public Response<Long> sinterstore(byte[] dstkey, byte[]... keys)
- Specified by:
sinterstore
in interfaceMultiKeyBinaryRedisPipeline
-
smove
public Response<Long> smove(String srckey, String dstkey, String member)
- Specified by:
smove
in interfaceMultiKeyCommandsPipeline
-
smove
public Response<Long> smove(byte[] srckey, byte[] dstkey, byte[] member)
- Specified by:
smove
in interfaceMultiKeyBinaryRedisPipeline
-
sort
public Response<Long> sort(String key, SortingParams sortingParameters, String dstkey)
- Specified by:
sort
in interfaceMultiKeyCommandsPipeline
-
sort
public Response<Long> sort(byte[] key, SortingParams sortingParameters, byte[] dstkey)
- Specified by:
sort
in interfaceMultiKeyBinaryRedisPipeline
-
sort
public Response<Long> sort(String key, String dstkey)
- Specified by:
sort
in interfaceMultiKeyCommandsPipeline
-
sort
public Response<Long> sort(byte[] key, byte[] dstkey)
- Specified by:
sort
in interfaceMultiKeyBinaryRedisPipeline
-
sunion
public Response<Set<String>> sunion(String... keys)
- Specified by:
sunion
in interfaceMultiKeyCommandsPipeline
-
sunion
public Response<Set<byte[]>> sunion(byte[]... keys)
- Specified by:
sunion
in interfaceMultiKeyBinaryRedisPipeline
-
sunionstore
public Response<Long> sunionstore(String dstkey, String... keys)
- Specified by:
sunionstore
in interfaceMultiKeyCommandsPipeline
-
sunionstore
public Response<Long> sunionstore(byte[] dstkey, byte[]... keys)
- Specified by:
sunionstore
in interfaceMultiKeyBinaryRedisPipeline
-
watch
public Response<String> watch(String... keys)
- Specified by:
watch
in interfaceMultiKeyCommandsPipeline
-
watch
public Response<String> watch(byte[]... keys)
- Specified by:
watch
in interfaceMultiKeyBinaryRedisPipeline
-
unwatch
public Response<String> unwatch()
- Specified by:
unwatch
in interfaceMultiKeyBinaryRedisPipeline
- Specified by:
unwatch
in interfaceMultiKeyCommandsPipeline
-
zinterstore
public Response<Long> zinterstore(String dstkey, String... sets)
- Specified by:
zinterstore
in interfaceMultiKeyCommandsPipeline
-
zinterstore
public Response<Long> zinterstore(byte[] dstkey, byte[]... sets)
- Specified by:
zinterstore
in interfaceMultiKeyBinaryRedisPipeline
-
zinterstore
public Response<Long> zinterstore(String dstkey, ZParams params, String... sets)
- Specified by:
zinterstore
in interfaceMultiKeyCommandsPipeline
-
zinterstore
public Response<Long> zinterstore(byte[] dstkey, ZParams params, byte[]... sets)
- Specified by:
zinterstore
in interfaceMultiKeyBinaryRedisPipeline
-
zunionstore
public Response<Long> zunionstore(String dstkey, String... sets)
- Specified by:
zunionstore
in interfaceMultiKeyCommandsPipeline
-
zunionstore
public Response<Long> zunionstore(byte[] dstkey, byte[]... sets)
- Specified by:
zunionstore
in interfaceMultiKeyBinaryRedisPipeline
-
zunionstore
public Response<Long> zunionstore(String dstkey, ZParams params, String... sets)
- Specified by:
zunionstore
in interfaceMultiKeyCommandsPipeline
-
zunionstore
public Response<Long> zunionstore(byte[] dstkey, ZParams params, byte[]... sets)
- Specified by:
zunionstore
in interfaceMultiKeyBinaryRedisPipeline
-
bgrewriteaof
public Response<String> bgrewriteaof()
- Specified by:
bgrewriteaof
in interfaceBasicRedisPipeline
-
bgsave
public Response<String> bgsave()
- Specified by:
bgsave
in interfaceBasicRedisPipeline
-
configGet
public Response<List<String>> configGet(String pattern)
- Specified by:
configGet
in interfaceBasicRedisPipeline
-
configSet
public Response<String> configSet(String parameter, String value)
- Specified by:
configSet
in interfaceBasicRedisPipeline
-
brpoplpush
public Response<String> brpoplpush(String source, String destination, int timeout)
- Specified by:
brpoplpush
in interfaceMultiKeyCommandsPipeline
-
brpoplpush
public Response<byte[]> brpoplpush(byte[] source, byte[] destination, int timeout)
- Specified by:
brpoplpush
in interfaceMultiKeyBinaryRedisPipeline
-
configResetStat
public Response<String> configResetStat()
- Specified by:
configResetStat
in interfaceBasicRedisPipeline
-
save
public Response<String> save()
- Specified by:
save
in interfaceBasicRedisPipeline
-
lastsave
public Response<Long> lastsave()
- Specified by:
lastsave
in interfaceBasicRedisPipeline
-
publish
public Response<Long> publish(String channel, String message)
- Specified by:
publish
in interfaceMultiKeyCommandsPipeline
-
publish
public Response<Long> publish(byte[] channel, byte[] message)
- Specified by:
publish
in interfaceMultiKeyBinaryRedisPipeline
-
randomKey
public Response<String> randomKey()
- Specified by:
randomKey
in interfaceMultiKeyCommandsPipeline
-
randomKeyBinary
public Response<byte[]> randomKeyBinary()
- Specified by:
randomKeyBinary
in interfaceMultiKeyBinaryRedisPipeline
-
flushDB
public Response<String> flushDB()
- Specified by:
flushDB
in interfaceBasicRedisPipeline
-
flushAll
public Response<String> flushAll()
- Specified by:
flushAll
in interfaceBasicRedisPipeline
-
info
public Response<String> info()
- Specified by:
info
in interfaceBasicRedisPipeline
-
dbSize
public Response<Long> dbSize()
- Specified by:
dbSize
in interfaceBasicRedisPipeline
-
shutdown
public Response<String> shutdown()
- Specified by:
shutdown
in interfaceBasicRedisPipeline
-
ping
public Response<String> ping()
- Specified by:
ping
in interfaceBasicRedisPipeline
-
select
public Response<String> select(int index)
- Specified by:
select
in interfaceBasicRedisPipeline
-
swapDB
public Response<String> swapDB(int index1, int index2)
- Specified by:
swapDB
in interfaceBasicRedisPipeline
-
bitop
public Response<Long> bitop(BitOP op, byte[] destKey, byte[]... srcKeys)
- Specified by:
bitop
in interfaceMultiKeyBinaryRedisPipeline
-
bitop
public Response<Long> bitop(BitOP op, String destKey, String... srcKeys)
- Specified by:
bitop
in interfaceMultiKeyCommandsPipeline
-
clusterNodes
public Response<String> clusterNodes()
- Specified by:
clusterNodes
in interfaceClusterPipeline
-
clusterMeet
public Response<String> clusterMeet(String ip, int port)
- Specified by:
clusterMeet
in interfaceClusterPipeline
-
clusterAddSlots
public Response<String> clusterAddSlots(int... slots)
- Specified by:
clusterAddSlots
in interfaceClusterPipeline
-
clusterDelSlots
public Response<String> clusterDelSlots(int... slots)
- Specified by:
clusterDelSlots
in interfaceClusterPipeline
-
clusterInfo
public Response<String> clusterInfo()
- Specified by:
clusterInfo
in interfaceClusterPipeline
-
clusterGetKeysInSlot
public Response<List<String>> clusterGetKeysInSlot(int slot, int count)
- Specified by:
clusterGetKeysInSlot
in interfaceClusterPipeline
-
clusterSetSlotNode
public Response<String> clusterSetSlotNode(int slot, String nodeId)
- Specified by:
clusterSetSlotNode
in interfaceClusterPipeline
-
clusterSetSlotMigrating
public Response<String> clusterSetSlotMigrating(int slot, String nodeId)
- Specified by:
clusterSetSlotMigrating
in interfaceClusterPipeline
-
clusterSetSlotImporting
public Response<String> clusterSetSlotImporting(int slot, String nodeId)
- Specified by:
clusterSetSlotImporting
in interfaceClusterPipeline
-
eval
public Response<Object> eval(String script)
- Specified by:
eval
in interfaceScriptingCommandsPipeline
-
eval
public Response<Object> eval(String script, List<String> keys, List<String> args)
- Specified by:
eval
in interfaceScriptingCommandsPipeline
-
eval
public Response<Object> eval(String script, int keyCount, String... params)
- Specified by:
eval
in interfaceScriptingCommandsPipeline
-
evalsha
public Response<Object> evalsha(String sha1)
- Specified by:
evalsha
in interfaceScriptingCommandsPipeline
-
evalsha
public Response<Object> evalsha(String sha1, List<String> keys, List<String> args)
- Specified by:
evalsha
in interfaceScriptingCommandsPipeline
-
evalsha
public Response<Object> evalsha(String sha1, int keyCount, String... params)
- Specified by:
evalsha
in interfaceScriptingCommandsPipeline
-
eval
public Response<Object> eval(byte[] script)
- Specified by:
eval
in interfaceBinaryScriptingCommandsPipeline
-
eval
public Response<Object> eval(byte[] script, byte[] keyCount, byte[]... params)
- Specified by:
eval
in interfaceBinaryScriptingCommandsPipeline
-
eval
public Response<Object> eval(byte[] script, List<byte[]> keys, List<byte[]> args)
- Specified by:
eval
in interfaceBinaryScriptingCommandsPipeline
-
eval
public Response<Object> eval(byte[] script, int keyCount, byte[]... params)
- Specified by:
eval
in interfaceBinaryScriptingCommandsPipeline
-
evalsha
public Response<Object> evalsha(byte[] sha1)
- Specified by:
evalsha
in interfaceBinaryScriptingCommandsPipeline
-
evalsha
public Response<Object> evalsha(byte[] sha1, List<byte[]> keys, List<byte[]> args)
- Specified by:
evalsha
in interfaceBinaryScriptingCommandsPipeline
-
evalsha
public Response<Object> evalsha(byte[] sha1, int keyCount, byte[]... params)
- Specified by:
evalsha
in interfaceBinaryScriptingCommandsPipeline
-
pfcount
public Response<Long> pfcount(String... keys)
- Specified by:
pfcount
in interfaceMultiKeyCommandsPipeline
-
pfcount
public Response<Long> pfcount(byte[]... keys)
- Specified by:
pfcount
in interfaceMultiKeyBinaryRedisPipeline
-
pfmerge
public Response<String> pfmerge(byte[] destkey, byte[]... sourcekeys)
- Specified by:
pfmerge
in interfaceMultiKeyBinaryRedisPipeline
-
pfmerge
public Response<String> pfmerge(String destkey, String... sourcekeys)
- Specified by:
pfmerge
in interfaceMultiKeyCommandsPipeline
-
time
public Response<List<String>> time()
- Specified by:
time
in interfaceBasicRedisPipeline
-
touch
public Response<Long> touch(String... keys)
- Specified by:
touch
in interfaceMultiKeyCommandsPipeline
-
touch
public Response<Long> touch(byte[]... keys)
- Specified by:
touch
in interfaceMultiKeyBinaryRedisPipeline
-
moduleUnload
public Response<String> moduleUnload(String name)
- Specified by:
moduleUnload
in interfaceBasicRedisPipeline
-
moduleList
public Response<List<Module>> moduleList()
- Specified by:
moduleList
in interfaceBasicRedisPipeline
-
moduleLoad
public Response<String> moduleLoad(String path)
- Specified by:
moduleLoad
in interfaceBasicRedisPipeline
-
migrate
public Response<String> migrate(String host, int port, int destinationDB, int timeout, MigrateParams params, String... keys)
- Specified by:
migrate
in interfaceMultiKeyCommandsPipeline
-
migrate
public Response<String> migrate(String host, int port, int destinationDB, int timeout, MigrateParams params, byte[]... keys)
- Specified by:
migrate
in interfaceMultiKeyBinaryRedisPipeline
-
sendCommand
public Response<Object> sendCommand(ProtocolCommand cmd, String... args)
-
sendCommand
public Response<Object> sendCommand(ProtocolCommand cmd, byte[]... args)
-
georadiusStore
public Response<Long> georadiusStore(String key, double longitude, double latitude, double radius, GeoUnit unit, GeoRadiusParam param, GeoRadiusStoreParam storeParam)
- Specified by:
georadiusStore
in interfaceMultiKeyCommandsPipeline
-
georadiusStore
public Response<Long> georadiusStore(byte[] key, double longitude, double latitude, double radius, GeoUnit unit, GeoRadiusParam param, GeoRadiusStoreParam storeParam)
- Specified by:
georadiusStore
in interfaceMultiKeyBinaryRedisPipeline
-
georadiusByMemberStore
public Response<Long> georadiusByMemberStore(byte[] key, byte[] member, double radius, GeoUnit unit, GeoRadiusParam param, GeoRadiusStoreParam storeParam)
- Specified by:
georadiusByMemberStore
in interfaceMultiKeyBinaryRedisPipeline
-
georadiusByMemberStore
public Response<Long> georadiusByMemberStore(String key, String member, double radius, GeoUnit unit, GeoRadiusParam param, GeoRadiusStoreParam storeParam)
- Specified by:
georadiusByMemberStore
in interfaceMultiKeyCommandsPipeline
-
-