redis.clients.jedis
Class Client

java.lang.Object
  extended by redis.clients.jedis.Connection
      extended by redis.clients.jedis.BinaryClient
          extended by redis.clients.jedis.Client
All Implemented Interfaces:
Commands

public class Client
extends BinaryClient
implements Commands


Nested Class Summary
 
Nested classes/interfaces inherited from class redis.clients.jedis.BinaryClient
BinaryClient.LIST_POSITION
 
Constructor Summary
Client(String host)
           
Client(String host, int port)
           
 
Method Summary
 void append(String key, String value)
           
 void blpop(String[] args)
           
 void brpop(String[] args)
           
 void brpoplpush(String source, String destination, int timeout)
           
 void configGet(String pattern)
           
 void configSet(String parameter, String value)
           
 void decr(String key)
           
 void decrBy(String key, long integer)
           
 void del(String... keys)
           
 void echo(String string)
           
 void eval(String script, int keyCount, String... params)
           
 void evalsha(String sha1, int keyCount, String... params)
           
 void exists(String key)
           
 void expire(String key, int seconds)
           
 void expireAt(String key, long unixTime)
           
 void get(String key)
           
 void getbit(String key, long offset)
           
 void getrange(String key, long startOffset, long endOffset)
           
 void getSet(String key, String value)
           
 void hdel(String key, String... fields)
           
 void hexists(String key, String field)
           
 void hget(String key, String field)
           
 void hgetAll(String key)
           
 void hincrBy(String key, String field, long value)
           
 void hkeys(String key)
           
 void hlen(String key)
           
 void hmget(String key, String... fields)
           
 void hmset(String key, Map<String,String> hash)
           
 void hset(String key, String field, String value)
           
 void hsetnx(String key, String field, String value)
           
 void hvals(String key)
           
 void incr(String key)
           
 void incrBy(String key, long integer)
           
 void keys(String pattern)
           
 void lindex(String key, long index)
           
 void linsert(String key, BinaryClient.LIST_POSITION where, String pivot, String value)
           
 void llen(String key)
           
 void lpop(String key)
           
 void lpush(String key, String... string)
           
 void lpushx(String key, String string)
           
 void lrange(String key, long start, long end)
           
 void lrem(String key, long count, String value)
           
 void lset(String key, long index, String value)
           
 void ltrim(String key, long start, long end)
           
 void mget(String... keys)
           
 void move(String key, int dbIndex)
           
 void mset(String... keysvalues)
           
 void msetnx(String... keysvalues)
           
 void objectEncoding(String key)
           
 void objectIdletime(String key)
           
 void objectRefcount(String key)
           
 void persist(String key)
           
 void psubscribe(String... patterns)
           
 void publish(String channel, String message)
           
 void punsubscribe(String... patterns)
           
 void rename(String oldkey, String newkey)
           
 void renamenx(String oldkey, String newkey)
           
 void rpop(String key)
           
 void rpoplpush(String srckey, String dstkey)
           
 void rpush(String key, String... string)
           
 void rpushx(String key, String string)
           
 void sadd(String key, String... members)
           
 void scard(String key)
           
 void scriptExists(String... sha1)
           
 void scriptLoad(String script)
           
 void sdiff(String... keys)
           
 void sdiffstore(String dstkey, String... keys)
           
 void set(String key, String value)
           
 void setbit(String key, long offset, boolean value)
           
 void setex(String key, int seconds, String value)
           
 void setnx(String key, String value)
           
 void setrange(String key, long offset, String value)
           
 void sinter(String... keys)
           
 void sinterstore(String dstkey, String... keys)
           
 void sismember(String key, String member)
           
 void smembers(String key)
           
 void smove(String srckey, String dstkey, String member)
           
 void sort(String key)
           
 void sort(String key, SortingParams sortingParameters)
           
 void sort(String key, SortingParams sortingParameters, String dstkey)
           
 void sort(String key, String dstkey)
           
 void spop(String key)
           
 void srandmember(String key)
           
 void srem(String key, String... members)
           
 void strlen(String key)
           
 void subscribe(String... channels)
           
 void substr(String key, int start, int end)
           
 void sunion(String... keys)
           
 void sunionstore(String dstkey, String... keys)
           
 void ttl(String key)
           
 void type(String key)
           
 void unsubscribe(String... channels)
           
 void watch(String... keys)
           
 void zadd(String key, double score, String member)
           
 void zadd(String key, Map<Double,String> scoreMembers)
           
 void zcard(String key)
           
 void zcount(String key, double min, double max)
           
 void zcount(String key, String min, String max)
           
 void zincrby(String key, double score, String member)
           
 void zinterstore(String dstkey, String... sets)
           
 void zinterstore(String dstkey, ZParams params, String... sets)
           
 void zrange(String key, long start, long end)
           
 void zrangeByScore(String key, double min, double max)
           
 void zrangeByScore(String key, double min, double max, int offset, int count)
           
 void zrangeByScore(String key, String min, String max)
           
 void zrangeByScore(String key, String min, String max, int offset, int count)
           
 void zrangeByScoreWithScores(String key, double min, double max)
           
 void zrangeByScoreWithScores(String key, double min, double max, int offset, int count)
           
 void zrangeByScoreWithScores(String key, String min, String max)
           
 void zrangeByScoreWithScores(String key, String min, String max, int offset, int count)
           
 void zrangeWithScores(String key, long start, long end)
           
 void zrank(String key, String member)
           
 void zrem(String key, String... members)
           
 void zremrangeByRank(String key, long start, long end)
           
 void zremrangeByScore(String key, double start, double end)
           
 void zremrangeByScore(String key, String start, String end)
           
 void zrevrange(String key, long start, long end)
           
 void zrevrangeByScore(String key, double max, double min)
           
 void zrevrangeByScore(String key, double max, double min, int offset, int count)
           
 void zrevrangeByScore(String key, String max, String min)
           
 void zrevrangeByScore(String key, String max, String min, int offset, int count)
           
 void zrevrangeByScoreWithScores(String key, double max, double min)
           
 void zrevrangeByScoreWithScores(String key, double max, double min, int offset, int count)
           
 void zrevrangeByScoreWithScores(String key, String max, String min)
           
 void zrevrangeByScoreWithScores(String key, String max, String min, int offset, int count)
           
 void zrevrangeWithScores(String key, long start, long end)
           
 void zrevrank(String key, String member)
           
 void zscore(String key, String member)
           
 void zunionstore(String dstkey, String... sets)
           
 void zunionstore(String dstkey, ZParams params, String... sets)
           
 
Methods inherited from class redis.clients.jedis.BinaryClient
append, auth, bgrewriteaof, bgsave, blpop, brpop, brpoplpush, configGet, configResetStat, configSet, connect, dbSize, debug, decr, decrBy, del, discard, disconnect, echo, eval, evalsha, exec, exists, expire, expireAt, flushAll, flushDB, get, getbit, getDB, getrange, getSet, hdel, hexists, hget, hgetAll, hincrBy, hkeys, hlen, hmget, hmset, hset, hsetnx, hvals, incr, incrBy, info, isInMulti, keys, lastsave, lindex, linsert, llen, lpop, lpush, lpushx, lrange, lrem, lset, ltrim, mget, monitor, move, mset, msetnx, multi, objectEncoding, objectIdletime, objectRefcount, persist, ping, psubscribe, publish, punsubscribe, punsubscribe, quit, randomKey, rename, renamenx, rpop, rpoplpush, rpush, rpushx, sadd, save, scard, scriptExists, scriptFlush, scriptKill, scriptLoad, sdiff, sdiffstore, select, set, setbit, setex, setnx, setPassword, setrange, shutdown, sinter, sinterstore, sismember, slaveof, slaveofNoOne, slowlogGet, slowlogGet, slowlogLen, slowlogReset, smembers, smove, sort, sort, sort, sort, spop, srandmember, srem, strlen, subscribe, substr, sunion, sunionstore, sync, ttl, type, unsubscribe, unsubscribe, unwatch, watch, zadd, zaddBinary, zcard, zcount, zincrby, zinterstore, zinterstore, zrange, zrangeByScore, zrangeByScore, zrangeByScoreWithScores, zrangeByScoreWithScores, zrangeWithScores, zrank, zrem, zremrangeByRank, zremrangeByScore, zrevrange, zrevrangeByScore, zrevrangeByScore, zrevrangeByScoreWithScores, zrevrangeByScoreWithScores, zrevrangeWithScores, zrevrank, zscore, zunionstore, zunionstore
 
Methods inherited from class redis.clients.jedis.Connection
flush, getAll, getAll, getBinaryBulkReply, getBinaryMultiBulkReply, getBulkReply, getHost, getIntegerMultiBulkReply, getIntegerReply, getMultiBulkReply, getObjectMultiBulkReply, getOne, getPort, getSocket, getStatusCodeReply, getTimeout, isConnected, rollbackTimeout, sendCommand, sendCommand, sendCommand, setHost, setPort, setTimeout, setTimeoutInfinite
 
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
bgrewriteaof, bgsave, configResetStat, discard, exec, lastsave, multi, save
 

Constructor Detail

Client

public Client(String host)

Client

public Client(String host,
              int port)
Method Detail

set

public void set(String key,
                String value)
Specified by:
set in interface Commands

get

public void get(String key)
Specified by:
get in interface Commands

exists

public void exists(String key)
Specified by:
exists in interface Commands

del

public void del(String... keys)
Specified by:
del in interface Commands

type

public void type(String key)
Specified by:
type in interface Commands

keys

public void keys(String pattern)
Specified by:
keys in interface Commands

rename

public void rename(String oldkey,
                   String newkey)
Specified by:
rename in interface Commands

renamenx

public void renamenx(String oldkey,
                     String newkey)
Specified by:
renamenx in interface Commands

expire

public void expire(String key,
                   int seconds)
Specified by:
expire in interface Commands

expireAt

public void expireAt(String key,
                     long unixTime)
Specified by:
expireAt in interface Commands

ttl

public void ttl(String key)
Specified by:
ttl in interface Commands

move

public void move(String key,
                 int dbIndex)
Specified by:
move in interface Commands

getSet

public void getSet(String key,
                   String value)
Specified by:
getSet in interface Commands

mget

public void mget(String... keys)
Specified by:
mget in interface Commands

setnx

public void setnx(String key,
                  String value)
Specified by:
setnx in interface Commands

setex

public void setex(String key,
                  int seconds,
                  String value)
Specified by:
setex in interface Commands

mset

public void mset(String... keysvalues)
Specified by:
mset in interface Commands

msetnx

public void msetnx(String... keysvalues)
Specified by:
msetnx in interface Commands

decrBy

public void decrBy(String key,
                   long integer)
Specified by:
decrBy in interface Commands

decr

public void decr(String key)
Specified by:
decr in interface Commands

incrBy

public void incrBy(String key,
                   long integer)
Specified by:
incrBy in interface Commands

incr

public void incr(String key)
Specified by:
incr in interface Commands

append

public void append(String key,
                   String value)
Specified by:
append in interface Commands

substr

public void substr(String key,
                   int start,
                   int end)
Specified by:
substr in interface Commands

hset

public void hset(String key,
                 String field,
                 String value)
Specified by:
hset in interface Commands

hget

public void hget(String key,
                 String field)
Specified by:
hget in interface Commands

hsetnx

public void hsetnx(String key,
                   String field,
                   String value)
Specified by:
hsetnx in interface Commands

hmset

public void hmset(String key,
                  Map<String,String> hash)
Specified by:
hmset in interface Commands

hmget

public void hmget(String key,
                  String... fields)
Specified by:
hmget in interface Commands

hincrBy

public void hincrBy(String key,
                    String field,
                    long value)
Specified by:
hincrBy in interface Commands

hexists

public void hexists(String key,
                    String field)
Specified by:
hexists in interface Commands

hdel

public void hdel(String key,
                 String... fields)
Specified by:
hdel in interface Commands

hlen

public void hlen(String key)
Specified by:
hlen in interface Commands

hkeys

public void hkeys(String key)
Specified by:
hkeys in interface Commands

hvals

public void hvals(String key)
Specified by:
hvals in interface Commands

hgetAll

public void hgetAll(String key)
Specified by:
hgetAll in interface Commands

rpush

public void rpush(String key,
                  String... string)
Specified by:
rpush in interface Commands

lpush

public void lpush(String key,
                  String... string)
Specified by:
lpush in interface Commands

llen

public void llen(String key)
Specified by:
llen in interface Commands

lrange

public void lrange(String key,
                   long start,
                   long end)
Specified by:
lrange in interface Commands

ltrim

public void ltrim(String key,
                  long start,
                  long end)
Specified by:
ltrim in interface Commands

lindex

public void lindex(String key,
                   long index)
Specified by:
lindex in interface Commands

lset

public void lset(String key,
                 long index,
                 String value)
Specified by:
lset in interface Commands

lrem

public void lrem(String key,
                 long count,
                 String value)
Specified by:
lrem in interface Commands

lpop

public void lpop(String key)
Specified by:
lpop in interface Commands

rpop

public void rpop(String key)
Specified by:
rpop in interface Commands

rpoplpush

public void rpoplpush(String srckey,
                      String dstkey)
Specified by:
rpoplpush in interface Commands

sadd

public void sadd(String key,
                 String... members)
Specified by:
sadd in interface Commands

smembers

public void smembers(String key)
Specified by:
smembers in interface Commands

srem

public void srem(String key,
                 String... members)
Specified by:
srem in interface Commands

spop

public void spop(String key)
Specified by:
spop in interface Commands

smove

public void smove(String srckey,
                  String dstkey,
                  String member)
Specified by:
smove in interface Commands

scard

public void scard(String key)
Specified by:
scard in interface Commands

sismember

public void sismember(String key,
                      String member)
Specified by:
sismember in interface Commands

sinter

public void sinter(String... keys)
Specified by:
sinter in interface Commands

sinterstore

public void sinterstore(String dstkey,
                        String... keys)
Specified by:
sinterstore in interface Commands

sunion

public void sunion(String... keys)
Specified by:
sunion in interface Commands

sunionstore

public void sunionstore(String dstkey,
                        String... keys)
Specified by:
sunionstore in interface Commands

sdiff

public void sdiff(String... keys)
Specified by:
sdiff in interface Commands

sdiffstore

public void sdiffstore(String dstkey,
                       String... keys)
Specified by:
sdiffstore in interface Commands

srandmember

public void srandmember(String key)
Specified by:
srandmember in interface Commands

zadd

public void zadd(String key,
                 double score,
                 String member)
Specified by:
zadd in interface Commands

zrange

public void zrange(String key,
                   long start,
                   long end)
Specified by:
zrange in interface Commands

zrem

public void zrem(String key,
                 String... members)
Specified by:
zrem in interface Commands

zincrby

public void zincrby(String key,
                    double score,
                    String member)
Specified by:
zincrby in interface Commands

zrank

public void zrank(String key,
                  String member)
Specified by:
zrank in interface Commands

zrevrank

public void zrevrank(String key,
                     String member)
Specified by:
zrevrank in interface Commands

zrevrange

public void zrevrange(String key,
                      long start,
                      long end)
Specified by:
zrevrange in interface Commands

zrangeWithScores

public void zrangeWithScores(String key,
                             long start,
                             long end)
Specified by:
zrangeWithScores in interface Commands

zrevrangeWithScores

public void zrevrangeWithScores(String key,
                                long start,
                                long end)
Specified by:
zrevrangeWithScores in interface Commands

zcard

public void zcard(String key)
Specified by:
zcard in interface Commands

zscore

public void zscore(String key,
                   String member)
Specified by:
zscore in interface Commands

watch

public void watch(String... keys)
Specified by:
watch in interface Commands

sort

public void sort(String key)
Specified by:
sort in interface Commands

sort

public void sort(String key,
                 SortingParams sortingParameters)
Specified by:
sort in interface Commands

blpop

public void blpop(String[] args)
Specified by:
blpop in interface Commands

sort

public void sort(String key,
                 SortingParams sortingParameters,
                 String dstkey)
Specified by:
sort in interface Commands

sort

public void sort(String key,
                 String dstkey)
Specified by:
sort in interface Commands

brpop

public void brpop(String[] args)
Specified by:
brpop in interface Commands

zcount

public void zcount(String key,
                   double min,
                   double max)
Specified by:
zcount in interface Commands

zcount

public void zcount(String key,
                   String min,
                   String max)
Specified by:
zcount in interface Commands

zrangeByScore

public void zrangeByScore(String key,
                          double min,
                          double max)
Specified by:
zrangeByScore in interface Commands

zrangeByScore

public void zrangeByScore(String key,
                          String min,
                          String max)
Specified by:
zrangeByScore in interface Commands

zrangeByScore

public void zrangeByScore(String key,
                          double min,
                          double max,
                          int offset,
                          int count)
Specified by:
zrangeByScore in interface Commands

zrangeByScoreWithScores

public void zrangeByScoreWithScores(String key,
                                    double min,
                                    double max)
Specified by:
zrangeByScoreWithScores in interface Commands

zrangeByScoreWithScores

public void zrangeByScoreWithScores(String key,
                                    double min,
                                    double max,
                                    int offset,
                                    int count)
Specified by:
zrangeByScoreWithScores in interface Commands

zrevrangeByScore

public void zrevrangeByScore(String key,
                             double max,
                             double min)
Specified by:
zrevrangeByScore in interface Commands

zrangeByScore

public void zrangeByScore(String key,
                          String min,
                          String max,
                          int offset,
                          int count)

zrangeByScoreWithScores

public void zrangeByScoreWithScores(String key,
                                    String min,
                                    String max)
Specified by:
zrangeByScoreWithScores in interface Commands

zrangeByScoreWithScores

public void zrangeByScoreWithScores(String key,
                                    String min,
                                    String max,
                                    int offset,
                                    int count)
Specified by:
zrangeByScoreWithScores in interface Commands

zrevrangeByScore

public void zrevrangeByScore(String key,
                             String max,
                             String min)
Specified by:
zrevrangeByScore in interface Commands

zrevrangeByScore

public void zrevrangeByScore(String key,
                             double max,
                             double min,
                             int offset,
                             int count)
Specified by:
zrevrangeByScore in interface Commands

zrevrangeByScore

public void zrevrangeByScore(String key,
                             String max,
                             String min,
                             int offset,
                             int count)

zrevrangeByScoreWithScores

public void zrevrangeByScoreWithScores(String key,
                                       double max,
                                       double min)
Specified by:
zrevrangeByScoreWithScores in interface Commands

zrevrangeByScoreWithScores

public void zrevrangeByScoreWithScores(String key,
                                       String max,
                                       String min)
Specified by:
zrevrangeByScoreWithScores in interface Commands

zrevrangeByScoreWithScores

public void zrevrangeByScoreWithScores(String key,
                                       double max,
                                       double min,
                                       int offset,
                                       int count)
Specified by:
zrevrangeByScoreWithScores in interface Commands

zrevrangeByScoreWithScores

public void zrevrangeByScoreWithScores(String key,
                                       String max,
                                       String min,
                                       int offset,
                                       int count)
Specified by:
zrevrangeByScoreWithScores in interface Commands

zremrangeByRank

public void zremrangeByRank(String key,
                            long start,
                            long end)
Specified by:
zremrangeByRank in interface Commands

zremrangeByScore

public void zremrangeByScore(String key,
                             double start,
                             double end)
Specified by:
zremrangeByScore in interface Commands

zremrangeByScore

public void zremrangeByScore(String key,
                             String start,
                             String end)
Specified by:
zremrangeByScore in interface Commands

zunionstore

public void zunionstore(String dstkey,
                        String... sets)
Specified by:
zunionstore in interface Commands

zunionstore

public void zunionstore(String dstkey,
                        ZParams params,
                        String... sets)
Specified by:
zunionstore in interface Commands

zinterstore

public void zinterstore(String dstkey,
                        String... sets)
Specified by:
zinterstore in interface Commands

zinterstore

public void zinterstore(String dstkey,
                        ZParams params,
                        String... sets)
Specified by:
zinterstore in interface Commands

strlen

public void strlen(String key)
Specified by:
strlen in interface Commands

lpushx

public void lpushx(String key,
                   String string)
Specified by:
lpushx in interface Commands

persist

public void persist(String key)
Specified by:
persist in interface Commands

rpushx

public void rpushx(String key,
                   String string)
Specified by:
rpushx in interface Commands

echo

public void echo(String string)
Specified by:
echo in interface Commands

linsert

public void linsert(String key,
                    BinaryClient.LIST_POSITION where,
                    String pivot,
                    String value)
Specified by:
linsert in interface Commands

brpoplpush

public void brpoplpush(String source,
                       String destination,
                       int timeout)
Specified by:
brpoplpush in interface Commands

setbit

public void setbit(String key,
                   long offset,
                   boolean value)
Specified by:
setbit in interface Commands

getbit

public void getbit(String key,
                   long offset)
Specified by:
getbit in interface Commands

setrange

public void setrange(String key,
                     long offset,
                     String value)
Specified by:
setrange in interface Commands

getrange

public void getrange(String key,
                     long startOffset,
                     long endOffset)
Specified by:
getrange in interface Commands

publish

public void publish(String channel,
                    String message)

unsubscribe

public void unsubscribe(String... channels)

psubscribe

public void psubscribe(String... patterns)

punsubscribe

public void punsubscribe(String... patterns)

subscribe

public void subscribe(String... channels)

configSet

public void configSet(String parameter,
                      String value)
Specified by:
configSet in interface Commands

configGet

public void configGet(String pattern)
Specified by:
configGet in interface Commands

eval

public void eval(String script,
                 int keyCount,
                 String... params)

evalsha

public void evalsha(String sha1,
                    int keyCount,
                    String... params)

scriptExists

public void scriptExists(String... sha1)

scriptLoad

public void scriptLoad(String script)

zadd

public void zadd(String key,
                 Map<Double,String> scoreMembers)
Specified by:
zadd in interface Commands

objectRefcount

public void objectRefcount(String key)
Specified by:
objectRefcount in interface Commands

objectIdletime

public void objectIdletime(String key)
Specified by:
objectIdletime in interface Commands

objectEncoding

public void objectEncoding(String key)
Specified by:
objectEncoding in interface Commands


Copyright © 2012. All Rights Reserved.