redis.clients.jedis
Class Transaction

java.lang.Object
  extended by redis.clients.jedis.Queable
      extended by redis.clients.jedis.BinaryTransaction
          extended by redis.clients.jedis.Transaction
Direct Known Subclasses:
TransactionBlock

public class Transaction
extends BinaryTransaction


Field Summary
 
Fields inherited from class redis.clients.jedis.BinaryTransaction
client, inTransaction
 
Constructor Summary
Transaction()
           
Transaction(Client client)
           
 
Method Summary
 Response<Long> append(String key, String value)
           
 Response<String> bgrewriteaof()
           
 Response<String> bgsave()
           
 Response<List<String>> blpop(String... args)
           
 Response<List<String>> brpop(String... args)
           
 Response<String> brpoplpush(String source, String destination, int timeout)
           
 Response<String> configGet(String pattern)
           
 Response<String> configResetStat()
           
 Response<String> configSet(String parameter, String value)
           
 Response<Long> decr(String key)
           
 Response<Long> decrBy(String key, long integer)
           
 Response<Long> del(String... keys)
           
 Response<String> echo(String string)
           
 Response<Boolean> exists(String key)
           
 Response<Long> expire(String key, int seconds)
           
 Response<Long> expireAt(String key, long unixTime)
           
 Response<String> get(String key)
           
 Response<Boolean> getbit(String key, long offset)
           
 Response<String> getrange(String key, long startOffset, long endOffset)
           
 Response<String> getSet(String key, String value)
           
 Response<Long> hdel(String key, String field)
           
 Response<Boolean> hexists(String key, String field)
           
 Response<String> hget(String key, String field)
           
 Response<Map<String,String>> hgetAll(String key)
           
 Response<Long> hincrBy(String key, String field, long value)
           
 Response<Set<String>> hkeys(String key)
           
 Response<Long> hlen(String key)
           
 Response<List<String>> hmget(String key, String... fields)
           
 Response<String> hmset(String key, Map<String,String> hash)
           
 Response<Long> hset(String key, String field, String value)
           
 Response<Long> hsetnx(String key, String field, String value)
           
 Response<List<String>> hvals(String key)
           
 Response<Long> incr(String key)
           
 Response<Long> incrBy(String key, long integer)
           
 Response<Set<String>> keys(String pattern)
           
 Response<Long> lastsave()
           
 Response<String> lindex(String key, int index)
           
 Response<Long> linsert(String key, BinaryClient.LIST_POSITION where, String pivot, String value)
           
 Response<Long> llen(String key)
           
 Response<String> lpop(String key)
           
 Response<Long> lpush(String key, String string)
           
 Response<Long> lpushx(String key, String string)
           
 Response<List<String>> lrange(String key, long start, long end)
           
 Response<Long> lrem(String key, long count, String value)
           
 Response<String> lset(String key, long index, String value)
           
 Response<String> ltrim(String key, long start, long end)
           
 Response<List<String>> mget(String... keys)
           
 Response<Long> move(String key, int dbIndex)
           
 Response<String> mset(String... keysvalues)
           
 Response<Long> msetnx(String... keysvalues)
           
 Response<Long> persist(String key)
           
 Response<Long> publish(byte[] channel, byte[] message)
           
 Response<Long> publish(String channel, String message)
           
 Response<String> rename(String oldkey, String newkey)
           
 Response<Long> renamenx(String oldkey, String newkey)
           
 Response<String> rpop(String key)
           
 Response<String> rpoplpush(String srckey, String dstkey)
           
 Response<Long> rpush(String key, String string)
           
 Response<Long> rpushx(String key, String string)
           
 Response<Long> sadd(String key, String member)
           
 Response<String> save()
           
 Response<Long> scard(String key)
           
 Response<Set<String>> sdiff(String... keys)
           
 Response<Long> sdiffstore(String dstkey, String... keys)
           
 Response<String> set(String key, String value)
           
 Response<Boolean> setbit(String key, long offset, boolean value)
           
 Response<String> setex(String key, int seconds, String value)
           
 Response<Long> setnx(String key, String value)
           
 Response<Long> setrange(String key, long offset, String value)
           
 Response<Set<String>> sinter(String... keys)
           
 Response<Long> sinterstore(String dstkey, String... keys)
           
 Response<Boolean> sismember(String key, String member)
           
 Response<Set<String>> smembers(String key)
           
 Response<Long> smove(String srckey, String dstkey, String member)
           
 Response<List<String>> sort(String key)
           
 Response<List<String>> sort(String key, SortingParams sortingParameters)
           
 Response<List<String>> sort(String key, SortingParams sortingParameters, String dstkey)
           
 Response<List<String>> sort(String key, String dstkey)
           
 Response<String> spop(String key)
           
 Response<String> srandmember(String key)
           
 Response<Long> srem(String key, String member)
           
 Response<Long> strlen(String key)
           
 Response<String> substr(String key, int start, int end)
           
 Response<Set<String>> sunion(String... keys)
           
 Response<Long> sunionstore(String dstkey, String... keys)
           
 Response<Long> ttl(String key)
           
 Response<String> type(String key)
           
 Response<Long> zadd(String key, double score, String member)
           
 Response<Long> zcard(String key)
           
 Response<Long> zcount(String key, double min, double max)
           
 Response<Double> zincrby(String key, double score, String member)
           
 Response<Long> zinterstore(String dstkey, String... sets)
           
 Response<Long> zinterstore(String dstkey, ZParams params, String... sets)
           
 Response<Set<String>> zrange(String key, int start, int end)
           
 Response<Set<String>> zrangeByScore(String key, double min, double max)
           
 Response<Set<String>> zrangeByScore(String key, double min, double max, int offset, int count)
           
 Response<Set<String>> zrangeByScore(String key, String min, String max)
           
 Response<Set<Tuple>> zrangeByScoreWithScores(String key, double min, double max)
           
 Response<Set<Tuple>> zrangeByScoreWithScores(String key, double min, double max, int offset, int count)
           
 Response<Set<Tuple>> zrangeWithScores(String key, int start, int end)
           
 Response<Long> zrank(String key, String member)
           
 Response<Long> zrem(String key, String member)
           
 Response<Long> zremrangeByRank(String key, int start, int end)
           
 Response<Long> zremrangeByScore(String key, double start, double end)
           
 Response<Set<String>> zrevrange(String key, int start, int end)
           
 Response<Set<Tuple>> zrevrangeWithScores(String key, int start, int end)
           
 Response<Long> zrevrank(String key, String member)
           
 Response<Double> zscore(String key, String member)
           
 Response<Long> zunionstore(String dstkey, String... sets)
           
 Response<Long> zunionstore(String dstkey, ZParams params, String... sets)
           
 
Methods inherited from class redis.clients.jedis.BinaryTransaction
append, blpop, brpop, brpoplpush, configGet, configSet, dbSize, decr, decrBy, del, discard, echo, exec, execGetResponse, exists, expire, expireAt, flushAll, flushDB, get, getbit, getSet, hdel, hexists, hget, hgetAll, hincrBy, hkeys, hlen, hmget, hmset, hset, hsetnx, hvals, incr, incrBy, info, keys, lindex, linsert, llen, lpop, lpush, lpushx, lrange, lrem, lset, ltrim, mget, move, mset, msetnx, persist, ping, randomKey, rename, renamenx, rpop, rpoplpush, rpush, rpushx, sadd, scard, sdiff, sdiffstore, select, set, setbit, setex, setnx, setrange, shutdown, sinter, sinterstore, sismember, smembers, smove, sort, sort, sort, sort, spop, srandmember, srem, strlen, substr, sunion, sunionstore, ttl, type, zadd, zcard, zcount, zcount, zincrby, zinterstore, zinterstore, zrange, zrangeByScore, zrangeByScore, zrangeByScore, zrangeByScore, zrangeByScoreWithScores, zrangeByScoreWithScores, zrangeByScoreWithScores, zrangeByScoreWithScores, zrangeWithScores, zrank, zrem, zremrangeByRank, zremrangeByScore, zremrangeByScore, zrevrange, zrevrangeWithScores, zrevrank, zscore, zunionstore, zunionstore
 
Methods inherited from class redis.clients.jedis.Queable
clean, generateResponse, getResponse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Transaction

public Transaction()

Transaction

public Transaction(Client client)
Method Detail

append

public Response<Long> append(String key,
                             String value)

blpop

public Response<List<String>> blpop(String... args)

brpop

public Response<List<String>> brpop(String... args)

decr

public Response<Long> decr(String key)

decrBy

public Response<Long> decrBy(String key,
                             long integer)

del

public Response<Long> del(String... keys)

echo

public Response<String> echo(String string)

exists

public Response<Boolean> exists(String key)

expire

public Response<Long> expire(String key,
                             int seconds)

expireAt

public Response<Long> expireAt(String key,
                               long unixTime)

get

public Response<String> get(String key)

getbit

public Response<Boolean> getbit(String key,
                                long offset)

getrange

public Response<String> getrange(String key,
                                 long startOffset,
                                 long endOffset)

getSet

public Response<String> getSet(String key,
                               String value)

hdel

public Response<Long> hdel(String key,
                           String field)

hexists

public Response<Boolean> hexists(String key,
                                 String field)

hget

public Response<String> hget(String key,
                             String field)

hgetAll

public Response<Map<String,String>> hgetAll(String key)

hincrBy

public Response<Long> hincrBy(String key,
                              String field,
                              long value)

hkeys

public Response<Set<String>> hkeys(String key)

hlen

public Response<Long> hlen(String key)

hmget

public Response<List<String>> hmget(String key,
                                    String... fields)

hmset

public Response<String> hmset(String key,
                              Map<String,String> hash)

hset

public Response<Long> hset(String key,
                           String field,
                           String value)

hsetnx

public Response<Long> hsetnx(String key,
                             String field,
                             String value)

hvals

public Response<List<String>> hvals(String key)

incr

public Response<Long> incr(String key)

incrBy

public Response<Long> incrBy(String key,
                             long integer)

keys

public Response<Set<String>> keys(String pattern)

lindex

public Response<String> lindex(String key,
                               int index)

linsert

public Response<Long> linsert(String key,
                              BinaryClient.LIST_POSITION where,
                              String pivot,
                              String value)

llen

public Response<Long> llen(String key)

lpop

public Response<String> lpop(String key)

lpush

public Response<Long> lpush(String key,
                            String string)

lpushx

public Response<Long> lpushx(String key,
                             String string)

lrange

public Response<List<String>> lrange(String key,
                                     long start,
                                     long end)

lrem

public Response<Long> lrem(String key,
                           long count,
                           String value)

lset

public Response<String> lset(String key,
                             long index,
                             String value)

ltrim

public Response<String> ltrim(String key,
                              long start,
                              long end)

mget

public Response<List<String>> mget(String... keys)

move

public Response<Long> move(String key,
                           int dbIndex)

mset

public Response<String> mset(String... keysvalues)

msetnx

public Response<Long> msetnx(String... keysvalues)

persist

public Response<Long> persist(String key)

rename

public Response<String> rename(String oldkey,
                               String newkey)

renamenx

public Response<Long> renamenx(String oldkey,
                               String newkey)

rpop

public Response<String> rpop(String key)

rpoplpush

public Response<String> rpoplpush(String srckey,
                                  String dstkey)

rpush

public Response<Long> rpush(String key,
                            String string)

rpushx

public Response<Long> rpushx(String key,
                             String string)

sadd

public Response<Long> sadd(String key,
                           String member)

scard

public Response<Long> scard(String key)

sdiff

public Response<Set<String>> sdiff(String... keys)

sdiffstore

public Response<Long> sdiffstore(String dstkey,
                                 String... keys)

set

public Response<String> set(String key,
                            String value)

setbit

public Response<Boolean> setbit(String key,
                                long offset,
                                boolean value)
Overrides:
setbit in class BinaryTransaction

setex

public Response<String> setex(String key,
                              int seconds,
                              String value)

setnx

public Response<Long> setnx(String key,
                            String value)

setrange

public Response<Long> setrange(String key,
                               long offset,
                               String value)

sinter

public Response<Set<String>> sinter(String... keys)

sinterstore

public Response<Long> sinterstore(String dstkey,
                                  String... keys)

sismember

public Response<Boolean> sismember(String key,
                                   String member)

smembers

public Response<Set<String>> smembers(String key)

smove

public Response<Long> smove(String srckey,
                            String dstkey,
                            String member)

sort

public Response<List<String>> sort(String key)

sort

public Response<List<String>> sort(String key,
                                   SortingParams sortingParameters)

sort

public Response<List<String>> sort(String key,
                                   SortingParams sortingParameters,
                                   String dstkey)

sort

public Response<List<String>> sort(String key,
                                   String dstkey)

spop

public Response<String> spop(String key)

srandmember

public Response<String> srandmember(String key)

srem

public Response<Long> srem(String key,
                           String member)

strlen

public Response<Long> strlen(String key)

substr

public Response<String> substr(String key,
                               int start,
                               int end)

sunion

public Response<Set<String>> sunion(String... keys)

sunionstore

public Response<Long> sunionstore(String dstkey,
                                  String... keys)

ttl

public Response<Long> ttl(String key)

type

public Response<String> type(String key)

zadd

public Response<Long> zadd(String key,
                           double score,
                           String member)

zcard

public Response<Long> zcard(String key)

zcount

public Response<Long> zcount(String key,
                             double min,
                             double max)

zincrby

public Response<Double> zincrby(String key,
                                double score,
                                String member)

zinterstore

public Response<Long> zinterstore(String dstkey,
                                  String... sets)

zinterstore

public Response<Long> zinterstore(String dstkey,
                                  ZParams params,
                                  String... sets)

zrange

public Response<Set<String>> zrange(String key,
                                    int start,
                                    int end)

zrangeByScore

public Response<Set<String>> zrangeByScore(String key,
                                           double min,
                                           double max)

zrangeByScore

public Response<Set<String>> zrangeByScore(String key,
                                           String min,
                                           String max)

zrangeByScore

public Response<Set<String>> zrangeByScore(String key,
                                           double min,
                                           double max,
                                           int offset,
                                           int count)

zrangeByScoreWithScores

public Response<Set<Tuple>> zrangeByScoreWithScores(String key,
                                                    double min,
                                                    double max)

zrangeByScoreWithScores

public Response<Set<Tuple>> zrangeByScoreWithScores(String key,
                                                    double min,
                                                    double max,
                                                    int offset,
                                                    int count)

zrangeWithScores

public Response<Set<Tuple>> zrangeWithScores(String key,
                                             int start,
                                             int end)

zrank

public Response<Long> zrank(String key,
                            String member)

zrem

public Response<Long> zrem(String key,
                           String member)

zremrangeByRank

public Response<Long> zremrangeByRank(String key,
                                      int start,
                                      int end)

zremrangeByScore

public Response<Long> zremrangeByScore(String key,
                                       double start,
                                       double end)

zrevrange

public Response<Set<String>> zrevrange(String key,
                                       int start,
                                       int end)

zrevrangeWithScores

public Response<Set<Tuple>> zrevrangeWithScores(String key,
                                                int start,
                                                int end)

zrevrank

public Response<Long> zrevrank(String key,
                               String member)

zscore

public Response<Double> zscore(String key,
                               String member)

zunionstore

public Response<Long> zunionstore(String dstkey,
                                  String... sets)

zunionstore

public Response<Long> zunionstore(String dstkey,
                                  ZParams params,
                                  String... sets)

bgrewriteaof

public Response<String> bgrewriteaof()

bgsave

public Response<String> bgsave()

configGet

public Response<String> configGet(String pattern)

configSet

public Response<String> configSet(String parameter,
                                  String value)

brpoplpush

public Response<String> brpoplpush(String source,
                                   String destination,
                                   int timeout)

configResetStat

public Response<String> configResetStat()
Overrides:
configResetStat in class BinaryTransaction

save

public Response<String> save()
Overrides:
save in class BinaryTransaction

lastsave

public Response<Long> lastsave()
Overrides:
lastsave in class BinaryTransaction

publish

public Response<Long> publish(String channel,
                              String message)

publish

public Response<Long> publish(byte[] channel,
                              byte[] message)
Overrides:
publish in class BinaryTransaction


Copyright © 2012. All Rights Reserved.