com.lordofthejars.nosqlunit.redis.embedded
Class EmbeddedJedis
java.lang.Object
com.lordofthejars.nosqlunit.redis.embedded.EmbeddedJedis
- All Implemented Interfaces:
- redis.clients.jedis.BinaryJedisCommands, redis.clients.jedis.JedisCommands
public class EmbeddedJedis
- extends Object
- implements redis.clients.jedis.JedisCommands, redis.clients.jedis.BinaryJedisCommands
|
Method Summary |
Long |
append(byte[] key,
byte[] value)
|
Long |
append(String key,
String value)
|
String |
auth(String password)
|
String |
bgrewriteaof()
|
String |
bgsave()
|
List<byte[]> |
configGet(byte[] pattern)
|
List<String> |
configGet(String pattern)
|
String |
configResetStat()
|
byte[] |
configSet(byte[] parameter,
byte[] value)
|
String |
configSet(String parameter,
String value)
|
Long |
dbSize()
|
Long |
decr(byte[] key)
|
Long |
decr(String key)
|
Long |
decrBy(byte[] key,
long integer)
|
Long |
decrBy(String key,
long integer)
|
Long |
del(byte[]... keys)
|
Long |
del(String... keys)
|
byte[] |
echo(byte[] string)
|
String |
echo(String string)
|
Object |
eval(byte[] script,
byte[] keyCount,
byte[][] params)
|
Object |
eval(byte[] script,
List<byte[]> keys,
List<byte[]> args)
Evaluates scripts using the Lua interpreter built into Redis starting
from version 2.6.0. |
Object |
eval(String script)
|
Object |
eval(String script,
int keyCount,
String... params)
|
Object |
eval(String script,
List<String> keys,
List<String> args)
|
Object |
evalsha(byte[] sha1,
byte[] keyCount,
byte[]... params)
|
Object |
evalsha(String script)
|
Object |
evalsha(String sha1,
int keyCount,
String... params)
|
Object |
evalsha(String sha1,
List<String> keys,
List<String> args)
|
Boolean |
exists(byte[] key)
|
Boolean |
exists(String key)
|
Long |
expire(byte[] key,
int seconds)
|
Long |
expire(String key,
int seconds)
|
Long |
expireAt(byte[] key,
long unixTime)
|
Long |
expireAt(String key,
long unixTime)
|
String |
flushAll()
|
String |
flushDB()
|
byte[] |
get(byte[] key)
|
String |
get(String key)
|
Boolean |
getbit(byte[] key,
long offset)
|
Boolean |
getbit(String key,
long offset)
|
Long |
getDB()
|
byte[] |
getrange(byte[] key,
long startOffset,
long endOffset)
|
String |
getrange(String key,
long startOffset,
long endOffset)
|
byte[] |
getSet(byte[] key,
byte[] value)
|
String |
getSet(String key,
String value)
|
Long |
hdel(byte[] key,
byte[]... fields)
|
Long |
hdel(String key,
String... fields)
|
Boolean |
hexists(byte[] key,
byte[] field)
|
Boolean |
hexists(String key,
String field)
|
byte[] |
hget(byte[] key,
byte[] field)
|
String |
hget(String key,
String field)
|
Map<byte[],byte[]> |
hgetAll(byte[] key)
|
Map<String,String> |
hgetAll(String key)
|
Long |
hincrBy(byte[] key,
byte[] field,
long value)
|
Long |
hincrBy(String key,
String field,
long value)
|
Set<byte[]> |
hkeys(byte[] key)
|
Set<String> |
hkeys(String key)
|
Long |
hlen(byte[] key)
|
Long |
hlen(String key)
|
List<byte[]> |
hmget(byte[] key,
byte[]... fields)
|
List<String> |
hmget(String key,
String... fields)
|
String |
hmset(byte[] key,
Map<byte[],byte[]> hash)
|
String |
hmset(String key,
Map<String,String> hash)
|
Long |
hset(byte[] key,
byte[] field,
byte[] value)
|
Long |
hset(String key,
String field,
String value)
|
Long |
hsetnx(byte[] key,
byte[] field,
byte[] value)
|
Long |
hsetnx(String key,
String field,
String value)
|
Collection<byte[]> |
hvals(byte[] key)
|
List<String> |
hvals(String key)
|
Long |
incr(byte[] key)
|
Long |
incr(String key)
|
Long |
incrBy(byte[] key,
long integer)
|
Long |
incrBy(String key,
long integer)
|
String |
info()
|
boolean |
isConnected()
|
Set<byte[]> |
keys(byte[] pattern)
|
Set<String> |
keys(String pattern)
|
Long |
lastsave()
|
byte[] |
lindex(byte[] key,
int index)
|
String |
lindex(String key,
long index)
|
Long |
linsert(byte[] key,
redis.clients.jedis.BinaryClient.LIST_POSITION where,
byte[] pivot,
byte[] value)
|
Long |
linsert(String key,
redis.clients.jedis.BinaryClient.LIST_POSITION where,
String pivot,
String value)
|
Long |
llen(byte[] key)
|
Long |
llen(String key)
|
byte[] |
lpop(byte[] key)
|
String |
lpop(String key)
|
Long |
lpush(byte[] key,
byte[]... values)
|
Long |
lpush(String key,
String... fields)
|
Long |
lpushx(byte[] key,
byte[] value)
|
Long |
lpushx(String key,
String string)
|
List<byte[]> |
lrange(byte[] key,
int start,
int end)
|
List<String> |
lrange(String key,
long start,
long end)
|
Long |
lrem(byte[] key,
int count,
byte[] value)
|
Long |
lrem(String key,
long count,
String value)
|
String |
lset(byte[] key,
int index,
byte[] value)
|
String |
lset(String key,
long index,
String value)
|
String |
ltrim(byte[] key,
int start,
int end)
|
String |
ltrim(String key,
long start,
long end)
|
void |
monitor(redis.clients.jedis.JedisMonitor jedisMonitor)
|
Long |
move(byte[] key,
int dbIndex)
|
redis.clients.jedis.Transaction |
multi()
|
List<Object> |
multi(redis.clients.jedis.TransactionBlock jedisTransaction)
|
byte[] |
objectEncoding(byte[] key)
|
byte[] |
objectEncoding(String key)
|
Long |
objectIdletime(byte[] key)
|
Long |
objectIdletime(String key)
|
Long |
objectRefcount(byte[] key)
|
Long |
objectRefcount(String key)
|
Long |
persist(byte[] key)
|
Long |
persist(String key)
|
String |
ping()
|
redis.clients.jedis.Pipeline |
pipelined()
|
List<Object> |
pipelined(redis.clients.jedis.PipelineBlock jedisPipeline)
|
void |
psubscribe(redis.clients.jedis.BinaryJedisPubSub jedisPubSub,
byte[]... patterns)
|
void |
psubscribe(redis.clients.jedis.BinaryJedisPubSub jedisPubSub,
String... patterns)
|
void |
psubscribe(redis.clients.jedis.JedisPubSub jedisPubSub,
byte[]... patterns)
|
void |
psubscribe(redis.clients.jedis.JedisPubSub jedisPubSub,
String... patterns)
|
Long |
publish(byte[] channel,
byte[] message)
|
Long |
publish(String channel,
String message)
|
String |
quit()
|
String |
rename(byte[] oldkey,
byte[] newkey)
|
String |
rename(String oldkey,
String newkey)
|
Long |
renamenx(byte[] oldkey,
byte[] newkey)
Rename oldkey into newkey but fails if the destination key newkey already
exists. |
Long |
renamenx(String oldkey,
String newkey)
Rename oldkey into newkey but fails if the destination key newkey already
exists. |
byte[] |
rpop(byte[] key)
|
String |
rpop(String key)
|
Long |
rpush(byte[] key,
byte[]... values)
|
Long |
rpush(String key,
String... fields)
|
Long |
rpushx(byte[] key,
byte[] value)
|
Long |
rpushx(String key,
String string)
|
Long |
sadd(byte[] key,
byte[]... member)
|
Long |
sadd(String key,
String... members)
|
String |
save()
|
Long |
scard(byte[] key)
|
Long |
scard(String key)
|
List<Long> |
scriptExists(byte[]... sha1)
|
List<Boolean> |
scriptExists(String... sha1)
|
Boolean |
scriptExists(String sha1)
|
byte[] |
scriptFlush()
|
byte[] |
scriptKill()
|
byte[] |
scriptLoad(byte[] script)
|
String |
scriptLoad(String script)
|
String |
select(int index)
|
String |
set(byte[] key,
byte[] value)
|
String |
set(String key,
String value)
|
Boolean |
setbit(byte[] key,
long offset,
byte[] value)
|
Boolean |
setbit(String key,
long offset,
boolean value)
|
String |
setex(byte[] key,
int seconds,
byte[] value)
|
String |
setex(String key,
int seconds,
String value)
|
Long |
setnx(byte[] key,
byte[] value)
|
Long |
setnx(String key,
String value)
|
Long |
setrange(byte[] key,
long offset,
byte[] value)
|
Long |
setrange(String key,
long offset,
String value)
|
String |
shutdown()
|
Boolean |
sismember(byte[] key,
byte[] member)
|
Boolean |
sismember(String key,
String member)
|
String |
slaveof(String host,
int port)
|
String |
slaveofNoOne()
|
List<redis.clients.util.Slowlog> |
slowlogGet()
|
List<redis.clients.util.Slowlog> |
slowlogGet(long entries)
|
List<byte[]> |
slowlogGetBinary()
|
List<byte[]> |
slowlogGetBinary(long entries)
|
long |
slowlogLen()
|
byte[] |
slowlogReset()
|
Set<byte[]> |
smembers(byte[] key)
|
Set<String> |
smembers(String key)
|
List<byte[]> |
sort(byte[] key)
|
List<byte[]> |
sort(byte[] key,
redis.clients.jedis.SortingParams sortingParameters)
|
List<String> |
sort(String key)
|
List<String> |
sort(String key,
redis.clients.jedis.SortingParams sortingParameters)
|
byte[] |
spop(byte[] key)
|
String |
spop(String key)
|
byte[] |
srandmember(byte[] key)
|
String |
srandmember(String key)
|
Long |
srem(byte[] key,
byte[]... member)
|
Long |
srem(String key,
String... members)
|
void |
subscribe(redis.clients.jedis.JedisPubSub jedisPubSub,
byte[]... channels)
|
void |
subscribe(redis.clients.jedis.JedisPubSub jedisPubSub,
String... channels)
|
byte[] |
substr(byte[] key,
int start,
int end)
|
String |
substr(String key,
int start,
int end)
|
void |
sync()
|
Long |
time()
|
Long |
ttl(byte[] key)
|
Long |
ttl(String key)
|
String |
type(byte[] key)
|
String |
type(String key)
|
String |
unwatch()
|
String |
watch(byte[]... keys)
|
String |
watch(String... keys)
|
Long |
zadd(byte[] key,
double score,
byte[] member)
|
Long |
zadd(byte[] key,
Map<Double,byte[]> scoreMembers)
|
Long |
zadd(String key,
double score,
String member)
|
Long |
zadd(String key,
Map<Double,String> scoreMembers)
|
Long |
zcard(byte[] key)
|
Long |
zcard(String key)
|
Long |
zcount(byte[] key,
byte[] min,
byte[] max)
|
Long |
zcount(byte[] key,
double min,
double max)
|
Long |
zcount(String key,
double min,
double max)
|
Long |
zcount(String key,
String min,
String max)
|
Double |
zincrby(byte[] key,
double score,
byte[] member)
|
Double |
zincrby(String key,
double score,
String member)
|
Set<byte[]> |
zrange(byte[] key,
int start,
int end)
|
Set<String> |
zrange(String key,
long start,
long end)
|
Set<byte[]> |
zrangeByScore(byte[] key,
byte[] min,
byte[] max)
|
Set<byte[]> |
zrangeByScore(byte[] key,
byte[] min,
byte[] max,
int offset,
int count)
|
Set<byte[]> |
zrangeByScore(byte[] key,
double min,
double max)
|
Set<byte[]> |
zrangeByScore(byte[] key,
double min,
double max,
int offset,
int count)
|
Set<String> |
zrangeByScore(String key,
double min,
double max)
|
Set<String> |
zrangeByScore(String key,
double min,
double max,
int offset,
int count)
|
Set<String> |
zrangeByScore(String key,
String min,
String max)
|
Set<String> |
zrangeByScore(String key,
String min,
String max,
int offset,
int count)
|
Set<redis.clients.jedis.Tuple> |
zrangeByScoreWithScores(byte[] key,
byte[] min,
byte[] max)
|
Set<redis.clients.jedis.Tuple> |
zrangeByScoreWithScores(byte[] key,
byte[] min,
byte[] max,
int offset,
int count)
|
Set<redis.clients.jedis.Tuple> |
zrangeByScoreWithScores(byte[] key,
double min,
double max)
|
Set<redis.clients.jedis.Tuple> |
zrangeByScoreWithScores(byte[] key,
double min,
double max,
int offset,
int count)
|
Set<redis.clients.jedis.Tuple> |
zrangeByScoreWithScores(String key,
double min,
double max)
|
Set<redis.clients.jedis.Tuple> |
zrangeByScoreWithScores(String key,
double min,
double max,
int offset,
int count)
|
Set<redis.clients.jedis.Tuple> |
zrangeByScoreWithScores(String key,
String min,
String max)
|
Set<redis.clients.jedis.Tuple> |
zrangeByScoreWithScores(String key,
String min,
String max,
int offset,
int count)
|
Set<redis.clients.jedis.Tuple> |
zrangeWithScores(byte[] key,
int start,
int end)
|
Set<redis.clients.jedis.Tuple> |
zrangeWithScores(String key,
long start,
long end)
|
Long |
zrank(byte[] key,
byte[] member)
|
Long |
zrank(String key,
String member)
|
Long |
zrem(byte[] key,
byte[]... members)
|
Long |
zrem(String key,
String... members)
|
Long |
zremrangeByRank(byte[] key,
int start,
int end)
|
Long |
zremrangeByRank(String key,
long start,
long end)
|
Long |
zremrangeByScore(byte[] key,
byte[] start,
byte[] end)
|
Long |
zremrangeByScore(byte[] key,
double start,
double end)
|
Long |
zremrangeByScore(String key,
double start,
double end)
|
Long |
zremrangeByScore(String key,
String start,
String end)
|
Set<byte[]> |
zrevrange(byte[] key,
int start,
int end)
|
Set<String> |
zrevrange(String key,
long start,
long end)
|
Set<byte[]> |
zrevrangeByScore(byte[] key,
byte[] max,
byte[] min)
|
Set<byte[]> |
zrevrangeByScore(byte[] key,
byte[] max,
byte[] min,
int offset,
int count)
|
Set<byte[]> |
zrevrangeByScore(byte[] key,
double max,
double min)
|
Set<byte[]> |
zrevrangeByScore(byte[] key,
double max,
double min,
int offset,
int count)
|
Set<String> |
zrevrangeByScore(String key,
double max,
double min)
|
Set<String> |
zrevrangeByScore(String key,
double max,
double min,
int offset,
int count)
|
Set<String> |
zrevrangeByScore(String key,
String max,
String min)
|
Set<String> |
zrevrangeByScore(String key,
String max,
String min,
int offset,
int count)
|
Set<redis.clients.jedis.Tuple> |
zrevrangeByScoreWithScores(byte[] key,
byte[] max,
byte[] min)
|
Set<redis.clients.jedis.Tuple> |
zrevrangeByScoreWithScores(byte[] key,
byte[] max,
byte[] min,
int offset,
int count)
|
Set<redis.clients.jedis.Tuple> |
zrevrangeByScoreWithScores(byte[] key,
double max,
double min)
|
Set<redis.clients.jedis.Tuple> |
zrevrangeByScoreWithScores(byte[] key,
double max,
double min,
int offset,
int count)
|
Set<redis.clients.jedis.Tuple> |
zrevrangeByScoreWithScores(String key,
double max,
double min)
|
Set<redis.clients.jedis.Tuple> |
zrevrangeByScoreWithScores(String key,
double max,
double min,
int offset,
int count)
|
Set<redis.clients.jedis.Tuple> |
zrevrangeByScoreWithScores(String key,
String max,
String min)
|
Set<redis.clients.jedis.Tuple> |
zrevrangeByScoreWithScores(String key,
String max,
String min,
int offset,
int count)
|
Set<redis.clients.jedis.Tuple> |
zrevrangeWithScores(byte[] key,
int start,
int end)
|
Set<redis.clients.jedis.Tuple> |
zrevrangeWithScores(String key,
long start,
long end)
|
Long |
zrevrank(byte[] key,
byte[] member)
|
Long |
zrevrank(String key,
String member)
|
Double |
zscore(byte[] key,
byte[] member)
|
Double |
zscore(String key,
String member)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
hashDatatypeOperations
protected HashDatatypeOperations hashDatatypeOperations
listDatatypeOperations
protected ListDatatypeOperations listDatatypeOperations
setDatatypeOperations
protected SetDatatypeOperations setDatatypeOperations
sortsetDatatypeOperations
protected SortsetDatatypeOperations sortsetDatatypeOperations
stringDatatypeOperations
protected StringDatatypeOperations stringDatatypeOperations
keysServerOperations
protected KeysServerOperations keysServerOperations
pubSubServerOperations
protected PubSubServerOperations pubSubServerOperations
connectionServerOperations
protected ConnectionServerOperations connectionServerOperations
scriptingServerOperations
protected ScriptingServerOperations scriptingServerOperations
transactionServerOperations
protected TransactionServerOperations transactionServerOperations
EmbeddedJedis
public EmbeddedJedis()
set
public String set(byte[] key,
byte[] value)
- Specified by:
set in interface redis.clients.jedis.BinaryJedisCommands
get
public byte[] get(byte[] key)
- Specified by:
get in interface redis.clients.jedis.BinaryJedisCommands
exists
public Boolean exists(byte[] key)
- Specified by:
exists in interface redis.clients.jedis.BinaryJedisCommands
type
public String type(byte[] key)
- Specified by:
type in interface redis.clients.jedis.BinaryJedisCommands
expire
public Long expire(byte[] key,
int seconds)
- Specified by:
expire in interface redis.clients.jedis.BinaryJedisCommands
expireAt
public Long expireAt(byte[] key,
long unixTime)
- Specified by:
expireAt in interface redis.clients.jedis.BinaryJedisCommands
ttl
public Long ttl(byte[] key)
- Specified by:
ttl in interface redis.clients.jedis.BinaryJedisCommands
getSet
public byte[] getSet(byte[] key,
byte[] value)
- Specified by:
getSet in interface redis.clients.jedis.BinaryJedisCommands
setnx
public Long setnx(byte[] key,
byte[] value)
- Specified by:
setnx in interface redis.clients.jedis.BinaryJedisCommands
setex
public String setex(byte[] key,
int seconds,
byte[] value)
- Specified by:
setex in interface redis.clients.jedis.BinaryJedisCommands
decrBy
public Long decrBy(byte[] key,
long integer)
- Specified by:
decrBy in interface redis.clients.jedis.BinaryJedisCommands
decr
public Long decr(byte[] key)
- Specified by:
decr in interface redis.clients.jedis.BinaryJedisCommands
incrBy
public Long incrBy(byte[] key,
long integer)
- Specified by:
incrBy in interface redis.clients.jedis.BinaryJedisCommands
incr
public Long incr(byte[] key)
- Specified by:
incr in interface redis.clients.jedis.BinaryJedisCommands
append
public Long append(byte[] key,
byte[] value)
- Specified by:
append in interface redis.clients.jedis.BinaryJedisCommands
substr
public byte[] substr(byte[] key,
int start,
int end)
- Specified by:
substr in interface redis.clients.jedis.BinaryJedisCommands
hset
public Long hset(byte[] key,
byte[] field,
byte[] value)
- Specified by:
hset in interface redis.clients.jedis.BinaryJedisCommands
hget
public byte[] hget(byte[] key,
byte[] field)
- Specified by:
hget in interface redis.clients.jedis.BinaryJedisCommands
hsetnx
public Long hsetnx(byte[] key,
byte[] field,
byte[] value)
- Specified by:
hsetnx in interface redis.clients.jedis.BinaryJedisCommands
hmset
public String hmset(byte[] key,
Map<byte[],byte[]> hash)
- Specified by:
hmset in interface redis.clients.jedis.BinaryJedisCommands
hmget
public List<byte[]> hmget(byte[] key,
byte[]... fields)
- Specified by:
hmget in interface redis.clients.jedis.BinaryJedisCommands
hincrBy
public Long hincrBy(byte[] key,
byte[] field,
long value)
- Specified by:
hincrBy in interface redis.clients.jedis.BinaryJedisCommands
hexists
public Boolean hexists(byte[] key,
byte[] field)
- Specified by:
hexists in interface redis.clients.jedis.BinaryJedisCommands
hdel
public Long hdel(byte[] key,
byte[]... fields)
- Specified by:
hdel in interface redis.clients.jedis.BinaryJedisCommands
hlen
public Long hlen(byte[] key)
- Specified by:
hlen in interface redis.clients.jedis.BinaryJedisCommands
hkeys
public Set<byte[]> hkeys(byte[] key)
- Specified by:
hkeys in interface redis.clients.jedis.BinaryJedisCommands
hvals
public Collection<byte[]> hvals(byte[] key)
- Specified by:
hvals in interface redis.clients.jedis.BinaryJedisCommands
hgetAll
public Map<byte[],byte[]> hgetAll(byte[] key)
- Specified by:
hgetAll in interface redis.clients.jedis.BinaryJedisCommands
rpush
public Long rpush(byte[] key,
byte[]... values)
- Specified by:
rpush in interface redis.clients.jedis.BinaryJedisCommands
lpush
public Long lpush(byte[] key,
byte[]... values)
- Specified by:
lpush in interface redis.clients.jedis.BinaryJedisCommands
llen
public Long llen(byte[] key)
- Specified by:
llen in interface redis.clients.jedis.BinaryJedisCommands
lrange
public List<byte[]> lrange(byte[] key,
int start,
int end)
- Specified by:
lrange in interface redis.clients.jedis.BinaryJedisCommands
ltrim
public String ltrim(byte[] key,
int start,
int end)
- Specified by:
ltrim in interface redis.clients.jedis.BinaryJedisCommands
lindex
public byte[] lindex(byte[] key,
int index)
- Specified by:
lindex in interface redis.clients.jedis.BinaryJedisCommands
lset
public String lset(byte[] key,
int index,
byte[] value)
- Specified by:
lset in interface redis.clients.jedis.BinaryJedisCommands
lrem
public Long lrem(byte[] key,
int count,
byte[] value)
- Specified by:
lrem in interface redis.clients.jedis.BinaryJedisCommands
lpop
public byte[] lpop(byte[] key)
- Specified by:
lpop in interface redis.clients.jedis.BinaryJedisCommands
rpop
public byte[] rpop(byte[] key)
- Specified by:
rpop in interface redis.clients.jedis.BinaryJedisCommands
sadd
public Long sadd(byte[] key,
byte[]... member)
- Specified by:
sadd in interface redis.clients.jedis.BinaryJedisCommands
smembers
public Set<byte[]> smembers(byte[] key)
- Specified by:
smembers in interface redis.clients.jedis.BinaryJedisCommands
srem
public Long srem(byte[] key,
byte[]... member)
- Specified by:
srem in interface redis.clients.jedis.BinaryJedisCommands
spop
public byte[] spop(byte[] key)
- Specified by:
spop in interface redis.clients.jedis.BinaryJedisCommands
scard
public Long scard(byte[] key)
- Specified by:
scard in interface redis.clients.jedis.BinaryJedisCommands
sismember
public Boolean sismember(byte[] key,
byte[] member)
- Specified by:
sismember in interface redis.clients.jedis.BinaryJedisCommands
srandmember
public byte[] srandmember(byte[] key)
- Specified by:
srandmember in interface redis.clients.jedis.BinaryJedisCommands
zadd
public Long zadd(byte[] key,
double score,
byte[] member)
- Specified by:
zadd in interface redis.clients.jedis.BinaryJedisCommands
zadd
public Long zadd(byte[] key,
Map<Double,byte[]> scoreMembers)
- Specified by:
zadd in interface redis.clients.jedis.BinaryJedisCommands
zrange
public Set<byte[]> zrange(byte[] key,
int start,
int end)
- Specified by:
zrange in interface redis.clients.jedis.BinaryJedisCommands
zrem
public Long zrem(byte[] key,
byte[]... members)
- Specified by:
zrem in interface redis.clients.jedis.BinaryJedisCommands
zincrby
public Double zincrby(byte[] key,
double score,
byte[] member)
- Specified by:
zincrby in interface redis.clients.jedis.BinaryJedisCommands
zrank
public Long zrank(byte[] key,
byte[] member)
- Specified by:
zrank in interface redis.clients.jedis.BinaryJedisCommands
zrevrank
public Long zrevrank(byte[] key,
byte[] member)
- Specified by:
zrevrank in interface redis.clients.jedis.BinaryJedisCommands
zrevrange
public Set<byte[]> zrevrange(byte[] key,
int start,
int end)
- Specified by:
zrevrange in interface redis.clients.jedis.BinaryJedisCommands
zrangeWithScores
public Set<redis.clients.jedis.Tuple> zrangeWithScores(byte[] key,
int start,
int end)
- Specified by:
zrangeWithScores in interface redis.clients.jedis.BinaryJedisCommands
zrevrangeWithScores
public Set<redis.clients.jedis.Tuple> zrevrangeWithScores(byte[] key,
int start,
int end)
- Specified by:
zrevrangeWithScores in interface redis.clients.jedis.BinaryJedisCommands
zcard
public Long zcard(byte[] key)
- Specified by:
zcard in interface redis.clients.jedis.BinaryJedisCommands
zscore
public Double zscore(byte[] key,
byte[] member)
- Specified by:
zscore in interface redis.clients.jedis.BinaryJedisCommands
sort
public List<byte[]> sort(byte[] key)
- Specified by:
sort in interface redis.clients.jedis.BinaryJedisCommands
sort
public List<byte[]> sort(byte[] key,
redis.clients.jedis.SortingParams sortingParameters)
- Specified by:
sort in interface redis.clients.jedis.BinaryJedisCommands
zcount
public Long zcount(byte[] key,
double min,
double max)
- Specified by:
zcount in interface redis.clients.jedis.BinaryJedisCommands
zcount
public Long zcount(byte[] key,
byte[] min,
byte[] max)
- Specified by:
zcount in interface redis.clients.jedis.BinaryJedisCommands
zrangeByScore
public Set<byte[]> zrangeByScore(byte[] key,
double min,
double max)
- Specified by:
zrangeByScore in interface redis.clients.jedis.BinaryJedisCommands
zrangeByScore
public Set<byte[]> zrangeByScore(byte[] key,
double min,
double max,
int offset,
int count)
- Specified by:
zrangeByScore in interface redis.clients.jedis.BinaryJedisCommands
zrangeByScoreWithScores
public Set<redis.clients.jedis.Tuple> zrangeByScoreWithScores(byte[] key,
double min,
double max)
- Specified by:
zrangeByScoreWithScores in interface redis.clients.jedis.BinaryJedisCommands
zrangeByScoreWithScores
public Set<redis.clients.jedis.Tuple> zrangeByScoreWithScores(byte[] key,
double min,
double max,
int offset,
int count)
- Specified by:
zrangeByScoreWithScores in interface redis.clients.jedis.BinaryJedisCommands
zrangeByScoreWithScores
public Set<redis.clients.jedis.Tuple> zrangeByScoreWithScores(byte[] key,
byte[] min,
byte[] max)
- Specified by:
zrangeByScoreWithScores in interface redis.clients.jedis.BinaryJedisCommands
zrangeByScoreWithScores
public Set<redis.clients.jedis.Tuple> zrangeByScoreWithScores(byte[] key,
byte[] min,
byte[] max,
int offset,
int count)
- Specified by:
zrangeByScoreWithScores in interface redis.clients.jedis.BinaryJedisCommands
zrevrangeByScore
public Set<byte[]> zrevrangeByScore(byte[] key,
double max,
double min)
- Specified by:
zrevrangeByScore in interface redis.clients.jedis.BinaryJedisCommands
zrevrangeByScore
public Set<byte[]> zrevrangeByScore(byte[] key,
double max,
double min,
int offset,
int count)
- Specified by:
zrevrangeByScore in interface redis.clients.jedis.BinaryJedisCommands
zrevrangeByScore
public Set<byte[]> zrevrangeByScore(byte[] key,
byte[] max,
byte[] min)
- Specified by:
zrevrangeByScore in interface redis.clients.jedis.BinaryJedisCommands
zrevrangeByScore
public Set<byte[]> zrevrangeByScore(byte[] key,
byte[] max,
byte[] min,
int offset,
int count)
- Specified by:
zrevrangeByScore in interface redis.clients.jedis.BinaryJedisCommands
zrevrangeByScoreWithScores
public Set<redis.clients.jedis.Tuple> zrevrangeByScoreWithScores(byte[] key,
double max,
double min)
- Specified by:
zrevrangeByScoreWithScores in interface redis.clients.jedis.BinaryJedisCommands
zrevrangeByScoreWithScores
public Set<redis.clients.jedis.Tuple> zrevrangeByScoreWithScores(byte[] key,
double max,
double min,
int offset,
int count)
- Specified by:
zrevrangeByScoreWithScores in interface redis.clients.jedis.BinaryJedisCommands
zrevrangeByScoreWithScores
public Set<redis.clients.jedis.Tuple> zrevrangeByScoreWithScores(byte[] key,
byte[] max,
byte[] min)
- Specified by:
zrevrangeByScoreWithScores in interface redis.clients.jedis.BinaryJedisCommands
zrevrangeByScoreWithScores
public Set<redis.clients.jedis.Tuple> zrevrangeByScoreWithScores(byte[] key,
byte[] max,
byte[] min,
int offset,
int count)
- Specified by:
zrevrangeByScoreWithScores in interface redis.clients.jedis.BinaryJedisCommands
zrangeByScore
public Set<byte[]> zrangeByScore(byte[] key,
byte[] min,
byte[] max)
zrangeByScore
public Set<byte[]> zrangeByScore(byte[] key,
byte[] min,
byte[] max,
int offset,
int count)
zremrangeByRank
public Long zremrangeByRank(byte[] key,
int start,
int end)
- Specified by:
zremrangeByRank in interface redis.clients.jedis.BinaryJedisCommands
zremrangeByScore
public Long zremrangeByScore(byte[] key,
double start,
double end)
- Specified by:
zremrangeByScore in interface redis.clients.jedis.BinaryJedisCommands
zremrangeByScore
public Long zremrangeByScore(byte[] key,
byte[] start,
byte[] end)
- Specified by:
zremrangeByScore in interface redis.clients.jedis.BinaryJedisCommands
linsert
public Long linsert(byte[] key,
redis.clients.jedis.BinaryClient.LIST_POSITION where,
byte[] pivot,
byte[] value)
- Specified by:
linsert in interface redis.clients.jedis.BinaryJedisCommands
objectRefcount
public Long objectRefcount(byte[] key)
- Specified by:
objectRefcount in interface redis.clients.jedis.BinaryJedisCommands
objectIdletime
public Long objectIdletime(byte[] key)
- Specified by:
objectIdletime in interface redis.clients.jedis.BinaryJedisCommands
objectEncoding
public byte[] objectEncoding(byte[] key)
- Specified by:
objectEncoding in interface redis.clients.jedis.BinaryJedisCommands
objectRefcount
public Long objectRefcount(String key)
objectIdletime
public Long objectIdletime(String key)
objectEncoding
public byte[] objectEncoding(String key)
psubscribe
public void psubscribe(redis.clients.jedis.JedisPubSub jedisPubSub,
byte[]... patterns)
psubscribe
public void psubscribe(redis.clients.jedis.JedisPubSub jedisPubSub,
String... patterns)
psubscribe
public void psubscribe(redis.clients.jedis.BinaryJedisPubSub jedisPubSub,
byte[]... patterns)
subscribe
public void subscribe(redis.clients.jedis.JedisPubSub jedisPubSub,
String... channels)
subscribe
public void subscribe(redis.clients.jedis.JedisPubSub jedisPubSub,
byte[]... channels)
psubscribe
public void psubscribe(redis.clients.jedis.BinaryJedisPubSub jedisPubSub,
String... patterns)
publish
public Long publish(byte[] channel,
byte[] message)
publish
public Long publish(String channel,
String message)
lpushx
public Long lpushx(byte[] key,
byte[] value)
- Specified by:
lpushx in interface redis.clients.jedis.BinaryJedisCommands
rpushx
public Long rpushx(byte[] key,
byte[] value)
- Specified by:
rpushx in interface redis.clients.jedis.BinaryJedisCommands
setbit
public Boolean setbit(byte[] key,
long offset,
byte[] value)
getbit
public Boolean getbit(byte[] key,
long offset)
setrange
public Long setrange(byte[] key,
long offset,
byte[] value)
getrange
public byte[] getrange(byte[] key,
long startOffset,
long endOffset)
dbSize
public Long dbSize()
flushDB
public String flushDB()
flushAll
public String flushAll()
del
public Long del(byte[]... keys)
del
public Long del(String... keys)
rename
public String rename(String oldkey,
String newkey)
rename
public String rename(byte[] oldkey,
byte[] newkey)
renamenx
public Long renamenx(byte[] oldkey,
byte[] newkey)
- Rename oldkey into newkey but fails if the destination key newkey already
exists.
Time complexity: O(1)
- Parameters:
oldkey - newkey -
- Returns:
- Integer reply, specifically: 1 if the key was renamed 0 if the
target key already exist
keys
public Set<byte[]> keys(byte[] pattern)
keys
public Set<String> keys(String pattern)
persist
public Long persist(String key)
persist
public Long persist(byte[] key)
renamenx
public Long renamenx(String oldkey,
String newkey)
- Rename oldkey into newkey but fails if the destination key newkey already
exists.
Time complexity: O(1)
- Parameters:
oldkey - newkey -
- Returns:
- Integer reply, specifically: 1 if the key was renamed 0 if the
target key already exist
move
public Long move(byte[] key,
int dbIndex)
set
public String set(String key,
String value)
- Specified by:
set in interface redis.clients.jedis.JedisCommands
get
public String get(String key)
- Specified by:
get in interface redis.clients.jedis.JedisCommands
exists
public Boolean exists(String key)
- Specified by:
exists in interface redis.clients.jedis.JedisCommands
type
public String type(String key)
- Specified by:
type in interface redis.clients.jedis.JedisCommands
expire
public Long expire(String key,
int seconds)
- Specified by:
expire in interface redis.clients.jedis.JedisCommands
expireAt
public Long expireAt(String key,
long unixTime)
- Specified by:
expireAt in interface redis.clients.jedis.JedisCommands
ttl
public Long ttl(String key)
- Specified by:
ttl in interface redis.clients.jedis.JedisCommands
setbit
public Boolean setbit(String key,
long offset,
boolean value)
- Specified by:
setbit in interface redis.clients.jedis.JedisCommands
getbit
public Boolean getbit(String key,
long offset)
- Specified by:
getbit in interface redis.clients.jedis.JedisCommands
setrange
public Long setrange(String key,
long offset,
String value)
- Specified by:
setrange in interface redis.clients.jedis.JedisCommands
getrange
public String getrange(String key,
long startOffset,
long endOffset)
- Specified by:
getrange in interface redis.clients.jedis.JedisCommands
getSet
public String getSet(String key,
String value)
- Specified by:
getSet in interface redis.clients.jedis.JedisCommands
setnx
public Long setnx(String key,
String value)
- Specified by:
setnx in interface redis.clients.jedis.JedisCommands
setex
public String setex(String key,
int seconds,
String value)
- Specified by:
setex in interface redis.clients.jedis.JedisCommands
decrBy
public Long decrBy(String key,
long integer)
- Specified by:
decrBy in interface redis.clients.jedis.JedisCommands
decr
public Long decr(String key)
- Specified by:
decr in interface redis.clients.jedis.JedisCommands
incrBy
public Long incrBy(String key,
long integer)
- Specified by:
incrBy in interface redis.clients.jedis.JedisCommands
incr
public Long incr(String key)
- Specified by:
incr in interface redis.clients.jedis.JedisCommands
append
public Long append(String key,
String value)
- Specified by:
append in interface redis.clients.jedis.JedisCommands
substr
public String substr(String key,
int start,
int end)
- Specified by:
substr in interface redis.clients.jedis.JedisCommands
hset
public Long hset(String key,
String field,
String value)
- Specified by:
hset in interface redis.clients.jedis.JedisCommands
hget
public String hget(String key,
String field)
- Specified by:
hget in interface redis.clients.jedis.JedisCommands
hsetnx
public Long hsetnx(String key,
String field,
String value)
- Specified by:
hsetnx in interface redis.clients.jedis.JedisCommands
hmset
public String hmset(String key,
Map<String,String> hash)
- Specified by:
hmset in interface redis.clients.jedis.JedisCommands
hmget
public List<String> hmget(String key,
String... fields)
- Specified by:
hmget in interface redis.clients.jedis.JedisCommands
hincrBy
public Long hincrBy(String key,
String field,
long value)
- Specified by:
hincrBy in interface redis.clients.jedis.JedisCommands
hexists
public Boolean hexists(String key,
String field)
- Specified by:
hexists in interface redis.clients.jedis.JedisCommands
hdel
public Long hdel(String key,
String... fields)
- Specified by:
hdel in interface redis.clients.jedis.JedisCommands
hlen
public Long hlen(String key)
- Specified by:
hlen in interface redis.clients.jedis.JedisCommands
hkeys
public Set<String> hkeys(String key)
- Specified by:
hkeys in interface redis.clients.jedis.JedisCommands
hvals
public List<String> hvals(String key)
- Specified by:
hvals in interface redis.clients.jedis.JedisCommands
hgetAll
public Map<String,String> hgetAll(String key)
- Specified by:
hgetAll in interface redis.clients.jedis.JedisCommands
rpush
public Long rpush(String key,
String... fields)
- Specified by:
rpush in interface redis.clients.jedis.JedisCommands
lpush
public Long lpush(String key,
String... fields)
- Specified by:
lpush in interface redis.clients.jedis.JedisCommands
llen
public Long llen(String key)
- Specified by:
llen in interface redis.clients.jedis.JedisCommands
lrange
public List<String> lrange(String key,
long start,
long end)
- Specified by:
lrange in interface redis.clients.jedis.JedisCommands
ltrim
public String ltrim(String key,
long start,
long end)
- Specified by:
ltrim in interface redis.clients.jedis.JedisCommands
lindex
public String lindex(String key,
long index)
- Specified by:
lindex in interface redis.clients.jedis.JedisCommands
lset
public String lset(String key,
long index,
String value)
- Specified by:
lset in interface redis.clients.jedis.JedisCommands
lrem
public Long lrem(String key,
long count,
String value)
- Specified by:
lrem in interface redis.clients.jedis.JedisCommands
lpop
public String lpop(String key)
- Specified by:
lpop in interface redis.clients.jedis.JedisCommands
rpop
public String rpop(String key)
- Specified by:
rpop in interface redis.clients.jedis.JedisCommands
sadd
public Long sadd(String key,
String... members)
- Specified by:
sadd in interface redis.clients.jedis.JedisCommands
smembers
public Set<String> smembers(String key)
- Specified by:
smembers in interface redis.clients.jedis.JedisCommands
srem
public Long srem(String key,
String... members)
- Specified by:
srem in interface redis.clients.jedis.JedisCommands
spop
public String spop(String key)
- Specified by:
spop in interface redis.clients.jedis.JedisCommands
scard
public Long scard(String key)
- Specified by:
scard in interface redis.clients.jedis.JedisCommands
sismember
public Boolean sismember(String key,
String member)
- Specified by:
sismember in interface redis.clients.jedis.JedisCommands
srandmember
public String srandmember(String key)
- Specified by:
srandmember in interface redis.clients.jedis.JedisCommands
zadd
public Long zadd(String key,
double score,
String member)
- Specified by:
zadd in interface redis.clients.jedis.JedisCommands
zadd
public Long zadd(String key,
Map<Double,String> scoreMembers)
- Specified by:
zadd in interface redis.clients.jedis.JedisCommands
zrange
public Set<String> zrange(String key,
long start,
long end)
- Specified by:
zrange in interface redis.clients.jedis.JedisCommands
zrem
public Long zrem(String key,
String... members)
- Specified by:
zrem in interface redis.clients.jedis.JedisCommands
zincrby
public Double zincrby(String key,
double score,
String member)
- Specified by:
zincrby in interface redis.clients.jedis.JedisCommands
zrank
public Long zrank(String key,
String member)
- Specified by:
zrank in interface redis.clients.jedis.JedisCommands
zrevrank
public Long zrevrank(String key,
String member)
- Specified by:
zrevrank in interface redis.clients.jedis.JedisCommands
zrevrange
public Set<String> zrevrange(String key,
long start,
long end)
- Specified by:
zrevrange in interface redis.clients.jedis.JedisCommands
zrangeWithScores
public Set<redis.clients.jedis.Tuple> zrangeWithScores(String key,
long start,
long end)
- Specified by:
zrangeWithScores in interface redis.clients.jedis.JedisCommands
zrevrangeWithScores
public Set<redis.clients.jedis.Tuple> zrevrangeWithScores(String key,
long start,
long end)
- Specified by:
zrevrangeWithScores in interface redis.clients.jedis.JedisCommands
zcard
public Long zcard(String key)
- Specified by:
zcard in interface redis.clients.jedis.JedisCommands
zscore
public Double zscore(String key,
String member)
- Specified by:
zscore in interface redis.clients.jedis.JedisCommands
sort
public List<String> sort(String key)
- Specified by:
sort in interface redis.clients.jedis.JedisCommands
sort
public List<String> sort(String key,
redis.clients.jedis.SortingParams sortingParameters)
- Specified by:
sort in interface redis.clients.jedis.JedisCommands
zcount
public Long zcount(String key,
double min,
double max)
- Specified by:
zcount in interface redis.clients.jedis.JedisCommands
zcount
public Long zcount(String key,
String min,
String max)
- Specified by:
zcount in interface redis.clients.jedis.JedisCommands
zrangeByScore
public Set<String> zrangeByScore(String key,
double min,
double max)
- Specified by:
zrangeByScore in interface redis.clients.jedis.JedisCommands
zrangeByScore
public Set<String> zrangeByScore(String key,
String min,
String max)
- Specified by:
zrangeByScore in interface redis.clients.jedis.JedisCommands
zrevrangeByScore
public Set<String> zrevrangeByScore(String key,
double max,
double min)
- Specified by:
zrevrangeByScore in interface redis.clients.jedis.JedisCommands
zrangeByScore
public Set<String> zrangeByScore(String key,
double min,
double max,
int offset,
int count)
- Specified by:
zrangeByScore in interface redis.clients.jedis.JedisCommands
zrevrangeByScore
public Set<String> zrevrangeByScore(String key,
String max,
String min)
- Specified by:
zrevrangeByScore in interface redis.clients.jedis.JedisCommands
zrangeByScore
public Set<String> zrangeByScore(String key,
String min,
String max,
int offset,
int count)
- Specified by:
zrangeByScore in interface redis.clients.jedis.JedisCommands
zrevrangeByScore
public Set<String> zrevrangeByScore(String key,
double max,
double min,
int offset,
int count)
- Specified by:
zrevrangeByScore in interface redis.clients.jedis.JedisCommands
zrangeByScoreWithScores
public Set<redis.clients.jedis.Tuple> zrangeByScoreWithScores(String key,
double min,
double max)
- Specified by:
zrangeByScoreWithScores in interface redis.clients.jedis.JedisCommands
zrevrangeByScoreWithScores
public Set<redis.clients.jedis.Tuple> zrevrangeByScoreWithScores(String key,
double max,
double min)
- Specified by:
zrevrangeByScoreWithScores in interface redis.clients.jedis.JedisCommands
zrangeByScoreWithScores
public Set<redis.clients.jedis.Tuple> zrangeByScoreWithScores(String key,
double min,
double max,
int offset,
int count)
- Specified by:
zrangeByScoreWithScores in interface redis.clients.jedis.JedisCommands
zrevrangeByScore
public Set<String> zrevrangeByScore(String key,
String max,
String min,
int offset,
int count)
- Specified by:
zrevrangeByScore in interface redis.clients.jedis.JedisCommands
zrangeByScoreWithScores
public Set<redis.clients.jedis.Tuple> zrangeByScoreWithScores(String key,
String min,
String max)
- Specified by:
zrangeByScoreWithScores in interface redis.clients.jedis.JedisCommands
zrevrangeByScoreWithScores
public Set<redis.clients.jedis.Tuple> zrevrangeByScoreWithScores(String key,
String max,
String min)
- Specified by:
zrevrangeByScoreWithScores in interface redis.clients.jedis.JedisCommands
zrangeByScoreWithScores
public Set<redis.clients.jedis.Tuple> zrangeByScoreWithScores(String key,
String min,
String max,
int offset,
int count)
- Specified by:
zrangeByScoreWithScores in interface redis.clients.jedis.JedisCommands
zrevrangeByScoreWithScores
public Set<redis.clients.jedis.Tuple> zrevrangeByScoreWithScores(String key,
double max,
double min,
int offset,
int count)
- Specified by:
zrevrangeByScoreWithScores in interface redis.clients.jedis.JedisCommands
zrevrangeByScoreWithScores
public Set<redis.clients.jedis.Tuple> zrevrangeByScoreWithScores(String key,
String max,
String min,
int offset,
int count)
- Specified by:
zrevrangeByScoreWithScores in interface redis.clients.jedis.JedisCommands
zremrangeByRank
public Long zremrangeByRank(String key,
long start,
long end)
- Specified by:
zremrangeByRank in interface redis.clients.jedis.JedisCommands
zremrangeByScore
public Long zremrangeByScore(String key,
double start,
double end)
- Specified by:
zremrangeByScore in interface redis.clients.jedis.JedisCommands
zremrangeByScore
public Long zremrangeByScore(String key,
String start,
String end)
- Specified by:
zremrangeByScore in interface redis.clients.jedis.JedisCommands
linsert
public Long linsert(String key,
redis.clients.jedis.BinaryClient.LIST_POSITION where,
String pivot,
String value)
- Specified by:
linsert in interface redis.clients.jedis.JedisCommands
lpushx
public Long lpushx(String key,
String string)
- Specified by:
lpushx in interface redis.clients.jedis.JedisCommands
rpushx
public Long rpushx(String key,
String string)
- Specified by:
rpushx in interface redis.clients.jedis.JedisCommands
auth
public String auth(String password)
echo
public byte[] echo(byte[] string)
echo
public String echo(String string)
ping
public String ping()
quit
public String quit()
select
public String select(int index)
eval
public Object eval(byte[] script,
List<byte[]> keys,
List<byte[]> args)
- Evaluates scripts using the Lua interpreter built into Redis starting
from version 2.6.0.
- Returns:
- Script result
eval
public Object eval(byte[] script,
byte[] keyCount,
byte[][] params)
eval
public Object eval(String script,
int keyCount,
String... params)
eval
public Object eval(String script,
List<String> keys,
List<String> args)
eval
public Object eval(String script)
evalsha
public Object evalsha(String script)
evalsha
public Object evalsha(String sha1,
List<String> keys,
List<String> args)
evalsha
public Object evalsha(String sha1,
int keyCount,
String... params)
evalsha
public Object evalsha(byte[] sha1,
byte[] keyCount,
byte[]... params)
scriptExists
public List<Long> scriptExists(byte[]... sha1)
scriptExists
public Boolean scriptExists(String sha1)
scriptExists
public List<Boolean> scriptExists(String... sha1)
scriptFlush
public byte[] scriptFlush()
scriptKill
public byte[] scriptKill()
scriptLoad
public byte[] scriptLoad(byte[] script)
scriptLoad
public String scriptLoad(String script)
watch
public String watch(byte[]... keys)
watch
public String watch(String... keys)
unwatch
public String unwatch()
pipelined
public List<Object> pipelined(redis.clients.jedis.PipelineBlock jedisPipeline)
pipelined
public redis.clients.jedis.Pipeline pipelined()
bgrewriteaof
public String bgrewriteaof()
save
public String save()
bgsave
public String bgsave()
configGet
public List<byte[]> configGet(byte[] pattern)
configGet
public List<String> configGet(String pattern)
configSet
public byte[] configSet(byte[] parameter,
byte[] value)
configSet
public String configSet(String parameter,
String value)
configResetStat
public String configResetStat()
info
public String info()
lastsave
public Long lastsave()
monitor
public void monitor(redis.clients.jedis.JedisMonitor jedisMonitor)
shutdown
public String shutdown()
slaveof
public String slaveof(String host,
int port)
slaveofNoOne
public String slaveofNoOne()
slowlogGet
public List<redis.clients.util.Slowlog> slowlogGet()
slowlogGet
public List<redis.clients.util.Slowlog> slowlogGet(long entries)
slowlogReset
public byte[] slowlogReset()
slowlogLen
public long slowlogLen()
slowlogGetBinary
public List<byte[]> slowlogGetBinary()
slowlogGetBinary
public List<byte[]> slowlogGetBinary(long entries)
sync
public void sync()
time
public Long time()
getDB
public Long getDB()
isConnected
public boolean isConnected()
multi
public redis.clients.jedis.Transaction multi()
multi
public List<Object> multi(redis.clients.jedis.TransactionBlock jedisTransaction)
Copyright © 2012. All Rights Reserved.