From 84bb16dd5e51b6f4d1e4156f05a74027cf813deb Mon Sep 17 00:00:00 2001 From: Yaourt Date: Thu, 4 Nov 2010 15:08:50 +0100 Subject: [PATCH] BinaryTransactiob is born, Transaction inherits from it --- .../clients/jedis/BinaryTransaction.java | 430 ++++++++++ .../java/redis/clients/jedis/Transaction.java | 807 +++++++++--------- 2 files changed, 817 insertions(+), 420 deletions(-) create mode 100644 src/main/java/redis/clients/jedis/BinaryTransaction.java diff --git a/src/main/java/redis/clients/jedis/BinaryTransaction.java b/src/main/java/redis/clients/jedis/BinaryTransaction.java new file mode 100644 index 0000000..5ce4f88 --- /dev/null +++ b/src/main/java/redis/clients/jedis/BinaryTransaction.java @@ -0,0 +1,430 @@ +package redis.clients.jedis; + +import java.util.List; +import java.util.Map; + +public class BinaryTransaction { + protected Client client = null; + + public BinaryTransaction() { + } + + public BinaryTransaction(final Client client) { + this.client = client; + } + + public String ping() { + client.ping(); + return client.getStatusCodeReply(); + } + + public String set(final byte[] key, final byte[] value) { + client.set(key, value); + return client.getStatusCodeReply(); + } + + public String get(final byte[] key) { + client.get(key); + return client.getStatusCodeReply(); + } + + public String exists(final byte[] key) { + client.exists(key); + return client.getStatusCodeReply(); + } + + public String del(final byte[]... keys) { + client.del(keys); + return client.getStatusCodeReply(); + } + + public String type(final byte[] key) { + client.type(key); + return client.getStatusCodeReply(); + } + + public String flushDB() { + client.flushDB(); + return client.getStatusCodeReply(); + } + + public String keys(final byte[] pattern) { + client.keys(pattern); + return client.getStatusCodeReply(); + } + + public byte[] randomBinaryKey() { + client.randomKey(); + return client.getBinaryBulkReply(); + } + + public String rename(final byte[] oldkey, final byte[] newkey) { + client.rename(oldkey, newkey); + return client.getStatusCodeReply(); + } + + public String renamenx(final byte[] oldkey, final byte[] newkey) { + client.renamenx(oldkey, newkey); + return client.getStatusCodeReply(); + } + + public String dbSize() { + client.dbSize(); + return client.getStatusCodeReply(); + } + + public String expire(final byte[] key, final int seconds) { + client.expire(key, seconds); + return client.getStatusCodeReply(); + } + + public String expireAt(final byte[] key, final long unixTime) { + client.expireAt(key, unixTime); + return client.getStatusCodeReply(); + } + + public String ttl(final byte[] key) { + client.ttl(key); + return client.getStatusCodeReply(); + } + + public String select(final int index) { + client.select(index); + return client.getStatusCodeReply(); + } + + public String move(final byte[] key, final int dbIndex) { + client.move(key, dbIndex); + return client.getStatusCodeReply(); + } + + public String flushAll() { + client.flushAll(); + return client.getStatusCodeReply(); + } + + public String getSet(final byte[] key, final byte[] value) { + client.getSet(key, value); + return client.getStatusCodeReply(); + } + + public String mget(final byte[]... keys) { + client.mget(keys); + return client.getStatusCodeReply(); + } + + public String setnx(final byte[] key, final byte[] value) { + client.setnx(key, value); + return client.getStatusCodeReply(); + } + + public String setex(final byte[] key, final int seconds, final byte[] value) { + client.setex(key, seconds, value); + return client.getStatusCodeReply(); + } + + public String mset(final byte[]... keysvalues) { + client.mset(keysvalues); + return client.getStatusCodeReply(); + } + + public String msetnx(final byte[]... keysvalues) { + client.msetnx(keysvalues); + return client.getStatusCodeReply(); + } + + public String decrBy(final byte[] key, final int integer) { + client.decrBy(key, integer); + return client.getStatusCodeReply(); + } + + public String decr(final byte[] key) { + client.decr(key); + return client.getStatusCodeReply(); + } + + public String incrBy(final byte[] key, final int integer) { + client.incrBy(key, integer); + return client.getStatusCodeReply(); + } + + public String incr(final byte[] key) { + client.incr(key); + return client.getStatusCodeReply(); + } + + public String append(final byte[] key, final byte[] value) { + client.append(key, value); + return client.getStatusCodeReply(); + } + + public String substr(final byte[] key, final int start, final int end) { + client.substr(key, start, end); + return client.getStatusCodeReply(); + } + + public String hset(final byte[] key, final byte[] field, final byte[] value) { + client.hset(key, field, value); + return client.getStatusCodeReply(); + } + + public String hget(final byte[] key, final byte[] field) { + client.hget(key, field); + return client.getStatusCodeReply(); + } + + public String hsetnx(final byte[] key, final byte[] field, + final byte[] value) { + client.hsetnx(key, field, value); + return client.getStatusCodeReply(); + } + + public String hmset(final byte[] key, final Map hash) { + client.hmset(key, hash); + return client.getStatusCodeReply(); + } + + public String hmget(final byte[] key, final byte[]... fields) { + client.hmget(key, fields); + return client.getStatusCodeReply(); + } + + public String hincrBy(final byte[] key, final byte[] field, final int value) { + client.hincrBy(key, field, value); + return client.getStatusCodeReply(); + } + + public String hexists(final byte[] key, final byte[] field) { + client.hexists(key, field); + return client.getStatusCodeReply(); + } + + public String hdel(final byte[] key, final byte[] field) { + client.hdel(key, field); + return client.getStatusCodeReply(); + } + + public String hlen(final byte[] key) { + client.hlen(key); + return client.getStatusCodeReply(); + } + + public String hkeys(final byte[] key) { + client.hkeys(key); + return client.getStatusCodeReply(); + } + + public String hvals(final byte[] key) { + client.hvals(key); + return client.getStatusCodeReply(); + } + + public String hgetAll(final byte[] key) { + client.hgetAll(key); + return client.getStatusCodeReply(); + } + + public String rpush(final byte[] key, final byte[] string) { + client.rpush(key, string); + return client.getStatusCodeReply(); + } + + public String lpush(final byte[] key, final byte[] string) { + client.lpush(key, string); + return client.getStatusCodeReply(); + } + + public String llen(final byte[] key) { + client.llen(key); + return client.getStatusCodeReply(); + } + + public String lrange(final byte[] key, final int start, final int end) { + client.lrange(key, start, end); + return client.getStatusCodeReply(); + } + + public String ltrim(final byte[] key, final int start, final int end) { + client.ltrim(key, start, end); + return client.getStatusCodeReply(); + } + + public String lindex(final byte[] key, final int index) { + client.lindex(key, index); + return client.getStatusCodeReply(); + } + + public String lset(final byte[] key, final int index, final byte[] value) { + client.lset(key, index, value); + return client.getStatusCodeReply(); + } + + public String lrem(final byte[] key, final int count, final byte[] value) { + client.lrem(key, count, value); + return client.getStatusCodeReply(); + } + + public String lpop(final byte[] key) { + client.lpop(key); + return client.getStatusCodeReply(); + } + + public String rpop(final byte[] key) { + client.rpop(key); + return client.getStatusCodeReply(); + } + + public String rpoplpush(final byte[] srckey, final byte[] dstkey) { + client.rpoplpush(srckey, dstkey); + return client.getStatusCodeReply(); + } + + public String sadd(final byte[] key, final byte[] member) { + client.sadd(key, member); + return client.getStatusCodeReply(); + } + + public String smembers(final byte[] key) { + client.smembers(key); + return client.getStatusCodeReply(); + } + + public String srem(final byte[] key, final byte[] member) { + client.srem(key, member); + return client.getStatusCodeReply(); + } + + public String spop(final byte[] key) { + client.spop(key); + return client.getStatusCodeReply(); + } + + public String smove(final byte[] srckey, final byte[] dstkey, + final byte[] member) { + client.smove(srckey, dstkey, member); + return client.getStatusCodeReply(); + } + + public String scard(final byte[] key) { + client.scard(key); + return client.getStatusCodeReply(); + } + + public String sismember(final byte[] key, final byte[] member) { + client.sismember(key, member); + return client.getStatusCodeReply(); + } + + public String sinter(final byte[]... keys) { + client.sinter(keys); + return client.getStatusCodeReply(); + } + + public String sinterstore(final byte[] dstkey, final byte[]... keys) { + client.sinterstore(dstkey, keys); + return client.getStatusCodeReply(); + } + + public String sunion(final byte[]... keys) { + client.sunion(keys); + return client.getStatusCodeReply(); + } + + public String sunionstore(final byte[] dstkey, final byte[]... keys) { + client.sunionstore(dstkey, keys); + return client.getStatusCodeReply(); + } + + public String sdiff(final byte[]... keys) { + client.sdiff(keys); + return client.getStatusCodeReply(); + } + + public String sdiffstore(final byte[] dstkey, final byte[]... keys) { + client.sdiffstore(dstkey, keys); + return client.getStatusCodeReply(); + } + + public String srandmember(final byte[] key) { + client.srandmember(key); + return client.getStatusCodeReply(); + } + + public String zadd(final byte[] key, final double score, final byte[] member) { + client.zadd(key, score, member); + return client.getStatusCodeReply(); + } + + public String zrange(final byte[] key, final int start, final int end) { + client.zrange(key, start, end); + return client.getStatusCodeReply(); + } + + public String zrem(final byte[] key, final byte[] member) { + client.zrem(key, member); + return client.getStatusCodeReply(); + } + + public String zincrby(final byte[] key, final double score, + final byte[] member) { + client.zincrby(key, score, member); + return client.getStatusCodeReply(); + } + + public String zrank(final byte[] key, final byte[] member) { + client.zrank(key, member); + return client.getStatusCodeReply(); + } + + public String zrevrank(final byte[] key, final byte[] member) { + client.zrevrank(key, member); + return client.getStatusCodeReply(); + } + + public String zrevrange(final byte[] key, final int start, final int end) { + client.zrevrange(key, start, end); + return client.getStatusCodeReply(); + } + + public String zrangeWithScores(final byte[] key, final int start, + final int end) { + client.zrangeWithScores(key, start, end); + return client.getStatusCodeReply(); + } + + public String zrevrangeWithScores(final byte[] key, final int start, + final int end) { + client.zrevrangeWithScores(key, start, end); + return client.getStatusCodeReply(); + } + + public String zcard(final byte[] key) { + client.zcard(key); + return client.getStatusCodeReply(); + } + + public String zscore(final byte[] key, final byte[] member) { + client.zscore(key, member); + return client.getStatusCodeReply(); + } + + public List exec() { + client.exec(); + + return client.getObjectMultiBulkReply(); + } + + public String sort(final byte[] key) { + client.sort(key); + return client.getStatusCodeReply(); + } + + public String sort(final byte[] key, final SortingParams sortingParameters) { + client.sort(key, sortingParameters); + return client.getStatusCodeReply(); + } + + public void discard() { + client.discard(); + } +} \ No newline at end of file diff --git a/src/main/java/redis/clients/jedis/Transaction.java b/src/main/java/redis/clients/jedis/Transaction.java index 51a7fe3..f0ddbe1 100644 --- a/src/main/java/redis/clients/jedis/Transaction.java +++ b/src/main/java/redis/clients/jedis/Transaction.java @@ -1,425 +1,392 @@ package redis.clients.jedis; -import java.util.List; import java.util.Map; -public class Transaction { - protected Client client = null; - - public Transaction() { - } - - public Transaction(Client client) { - this.client = client; - } - - public String ping() { - client.ping(); - return client.getStatusCodeReply(); - } - - public String set(String key, String value) { - client.set(key, value); - return client.getStatusCodeReply(); - } - - public String get(String key) { - client.sendCommand("GET", key); - return client.getStatusCodeReply(); - } - - public String exists(String key) { - client.exists(key); - return client.getStatusCodeReply(); - } - - public String del(String... keys) { - client.del(keys); - return client.getStatusCodeReply(); - } - - public String type(String key) { - client.type(key); - return client.getStatusCodeReply(); - } - - public String flushDB() { - client.flushDB(); - return client.getStatusCodeReply(); - } - - public String keys(String pattern) { - client.keys(pattern); - return client.getStatusCodeReply(); - } - - public String randomKey() { - client.randomKey(); - return client.getStatusCodeReply(); - } - - public String rename(String oldkey, String newkey) { - client.rename(oldkey, newkey); - return client.getStatusCodeReply(); - } - - public String renamenx(String oldkey, String newkey) { - client.renamenx(oldkey, newkey); - return client.getStatusCodeReply(); - } - - public String dbSize() { - client.dbSize(); - return client.getStatusCodeReply(); - } - - public String expire(String key, int seconds) { - client.expire(key, seconds); - return client.getStatusCodeReply(); - } - - public String expireAt(String key, long unixTime) { - client.expireAt(key, unixTime); - return client.getStatusCodeReply(); - } - - public String ttl(String key) { - client.ttl(key); - return client.getStatusCodeReply(); - } - - public String select(int index) { - client.select(index); - return client.getStatusCodeReply(); - } - - public String move(String key, int dbIndex) { - client.move(key, dbIndex); - return client.getStatusCodeReply(); - } - - public String flushAll() { - client.flushAll(); - return client.getStatusCodeReply(); - } - - public String getSet(String key, String value) { - client.getSet(key, value); - return client.getStatusCodeReply(); - } - - public String mget(String... keys) { - client.mget(keys); - return client.getStatusCodeReply(); - } - - public String setnx(String key, String value) { - client.setnx(key, value); - return client.getStatusCodeReply(); - } - - public String setex(String key, int seconds, String value) { - client.setex(key, seconds, value); - return client.getStatusCodeReply(); - } - - public String mset(String... keysvalues) { - client.mset(keysvalues); - return client.getStatusCodeReply(); - } - - public String msetnx(String... keysvalues) { - client.msetnx(keysvalues); - return client.getStatusCodeReply(); - } - - public String decrBy(String key, int integer) { - client.decrBy(key, integer); - return client.getStatusCodeReply(); - } - - public String decr(String key) { - client.decr(key); - return client.getStatusCodeReply(); - } - - public String incrBy(String key, int integer) { - client.incrBy(key, integer); - return client.getStatusCodeReply(); - } - - public String incr(String key) { - client.incr(key); - return client.getStatusCodeReply(); - } - - public String append(String key, String value) { - client.append(key, value); - return client.getStatusCodeReply(); - } - - public String substr(String key, int start, int end) { - client.substr(key, start, end); - return client.getStatusCodeReply(); - } - - public String hset(String key, String field, String value) { - client.hset(key, field, value); - return client.getStatusCodeReply(); - } - - public String hget(String key, String field) { - client.hget(key, field); - return client.getStatusCodeReply(); - } - - public String hsetnx(String key, String field, String value) { - client.hsetnx(key, field, value); - return client.getStatusCodeReply(); - } - - public String hmset(String key, Map hash) { - client.hmset(key, hash); - return client.getStatusCodeReply(); - } - - public String hmget(String key, String... fields) { - client.hmget(key, fields); - return client.getStatusCodeReply(); - } - - public String hincrBy(String key, String field, int value) { - client.hincrBy(key, field, value); - return client.getStatusCodeReply(); - } - - public String hexists(String key, String field) { - client.hexists(key, field); - return client.getStatusCodeReply(); - } - - public String hdel(String key, String field) { - client.hdel(key, field); - return client.getStatusCodeReply(); - } - - public String hlen(String key) { - client.hlen(key); - return client.getStatusCodeReply(); - } - - public String hkeys(String key) { - client.hkeys(key); - return client.getStatusCodeReply(); - } - - public String hvals(String key) { - client.hvals(key); - return client.getStatusCodeReply(); - } - - public String hgetAll(String key) { - client.hgetAll(key); - return client.getStatusCodeReply(); - } - - public String rpush(String key, String string) { - client.rpush(key, string); - return client.getStatusCodeReply(); - } - - public String lpush(String key, String string) { - client.lpush(key, string); - return client.getStatusCodeReply(); - } - - public String llen(String key) { - client.llen(key); - return client.getStatusCodeReply(); - } - - public String lrange(String key, int start, int end) { - client.lrange(key, start, end); - return client.getStatusCodeReply(); - } - - public String ltrim(String key, int start, int end) { - client.ltrim(key, start, end); - return client.getStatusCodeReply(); - } - - public String lindex(String key, int index) { - client.lindex(key, index); - return client.getStatusCodeReply(); - } - - public String lset(String key, int index, String value) { - client.lset(key, index, value); - return client.getStatusCodeReply(); - } - - public String lrem(String key, int count, String value) { - client.lrem(key, count, value); - return client.getStatusCodeReply(); - } - - public String lpop(String key) { - client.lpop(key); - return client.getStatusCodeReply(); - } - - public String rpop(String key) { - client.rpop(key); - return client.getStatusCodeReply(); - } - - public String rpoplpush(String srckey, String dstkey) { - client.rpoplpush(srckey, dstkey); - return client.getStatusCodeReply(); - } - - public String sadd(String key, String member) { - client.sadd(key, member); - return client.getStatusCodeReply(); - } - - public String smembers(String key) { - client.smembers(key); - return client.getStatusCodeReply(); - } - - public String srem(String key, String member) { - client.srem(key, member); - return client.getStatusCodeReply(); - } - - public String spop(String key) { - client.spop(key); - return client.getStatusCodeReply(); - } - - public String smove(String srckey, String dstkey, String member) { - client.smove(srckey, dstkey, member); - return client.getStatusCodeReply(); - } - - public String scard(String key) { - client.scard(key); - return client.getStatusCodeReply(); - } - - public String sismember(String key, String member) { - client.sismember(key, member); - return client.getStatusCodeReply(); - } - - public String sinter(String... keys) { - client.sinter(keys); - return client.getStatusCodeReply(); - } - - public String sinterstore(String dstkey, String... keys) { - client.sinterstore(dstkey, keys); - return client.getStatusCodeReply(); - } - - public String sunion(String... keys) { - client.sunion(keys); - return client.getStatusCodeReply(); - } - - public String sunionstore(String dstkey, String... keys) { - client.sunionstore(dstkey, keys); - return client.getStatusCodeReply(); - } - - public String sdiff(String... keys) { - client.sdiff(keys); - return client.getStatusCodeReply(); - } - - public String sdiffstore(String dstkey, String... keys) { - client.sdiffstore(dstkey, keys); - return client.getStatusCodeReply(); - } - - public String srandmember(String key) { - client.srandmember(key); - return client.getStatusCodeReply(); - } - - public String zadd(String key, double score, String member) { - client.zadd(key, score, member); - return client.getStatusCodeReply(); - } - - public String zrange(String key, int start, int end) { - client.zrange(key, start, end); - return client.getStatusCodeReply(); - } - - public String zrem(String key, String member) { - client.zrem(key, member); - return client.getStatusCodeReply(); - } - - public String zincrby(String key, double score, String member) { - client.zincrby(key, score, member); - return client.getStatusCodeReply(); - } - - public String zrank(String key, String member) { - client.zrank(key, member); - return client.getStatusCodeReply(); - } - - public String zrevrank(String key, String member) { - client.zrevrank(key, member); - return client.getStatusCodeReply(); - } - - public String zrevrange(String key, int start, int end) { - client.zrevrange(key, start, end); - return client.getStatusCodeReply(); - } - - public String zrangeWithScores(String key, int start, int end) { - client.zrangeWithScores(key, start, end); - return client.getStatusCodeReply(); - } - - public String zrevrangeWithScores(String key, int start, int end) { - client.zrevrangeWithScores(key, start, end); - return client.getStatusCodeReply(); - } - - public String zcard(String key) { - client.zcard(key); - return client.getStatusCodeReply(); - } - - public String zscore(String key, String member) { - client.zscore(key, member); - return client.getStatusCodeReply(); - } - - public List exec() { - client.exec(); - - return client.getObjectMultiBulkReply(); - } - - public String sort(String key) { - client.sort(key); - return client.getStatusCodeReply(); - } - - public String sort(String key, SortingParams sortingParameters) { - client.sort(key, sortingParameters); - return client.getStatusCodeReply(); - } - - public void discard() { - client.discard(); - } +public class Transaction extends BinaryTransaction { + public Transaction() { + } + + public Transaction(final Client client) { + super(client); + } + + public String set(final String key, final String value) { + client.set(key, value); + return client.getStatusCodeReply(); + } + + public String get(final String key) { + client.get(key); + return client.getStatusCodeReply(); + } + + public String exists(final String key) { + client.exists(key); + return client.getStatusCodeReply(); + } + + public String del(final String... keys) { + client.del(keys); + return client.getStatusCodeReply(); + } + + public String type(final String key) { + client.type(key); + return client.getStatusCodeReply(); + } + + public String keys(final String pattern) { + client.keys(pattern); + return client.getStatusCodeReply(); + } + + public String randomKey() { + client.randomKey(); + return client.getBulkReply(); + } + + public String rename(final String oldkey, final String newkey) { + client.rename(oldkey, newkey); + return client.getStatusCodeReply(); + } + + public String renamenx(final String oldkey, final String newkey) { + client.renamenx(oldkey, newkey); + return client.getStatusCodeReply(); + } + + public String expire(final String key, final int seconds) { + client.expire(key, seconds); + return client.getStatusCodeReply(); + } + + public String expireAt(final String key, final long unixTime) { + client.expireAt(key, unixTime); + return client.getStatusCodeReply(); + } + + public String ttl(final String key) { + client.ttl(key); + return client.getStatusCodeReply(); + } + + public String move(final String key, final int dbIndex) { + client.move(key, dbIndex); + return client.getStatusCodeReply(); + } + + public String getSet(final String key, final String value) { + client.getSet(key, value); + return client.getStatusCodeReply(); + } + + public String mget(final String... keys) { + client.mget(keys); + return client.getStatusCodeReply(); + } + + public String setnx(final String key, final String value) { + client.setnx(key, value); + return client.getStatusCodeReply(); + } + + public String setex(final String key, final int seconds, final String value) { + client.setex(key, seconds, value); + return client.getStatusCodeReply(); + } + + public String mset(final String... keysvalues) { + client.mset(keysvalues); + return client.getStatusCodeReply(); + } + + public String msetnx(final String... keysvalues) { + client.msetnx(keysvalues); + return client.getStatusCodeReply(); + } + + public String decrBy(final String key, final int integer) { + client.decrBy(key, integer); + return client.getStatusCodeReply(); + } + + public String decr(final String key) { + client.decr(key); + return client.getStatusCodeReply(); + } + + public String incrBy(final String key, final int integer) { + client.incrBy(key, integer); + return client.getStatusCodeReply(); + } + + public String incr(final String key) { + client.incr(key); + return client.getStatusCodeReply(); + } + + public String append(final String key, final String value) { + client.append(key, value); + return client.getStatusCodeReply(); + } + + public String substr(final String key, final int start, final int end) { + client.substr(key, start, end); + return client.getStatusCodeReply(); + } + + public String hset(final String key, final String field, final String value) { + client.hset(key, field, value); + return client.getStatusCodeReply(); + } + + public String hget(final String key, final String field) { + client.hget(key, field); + return client.getStatusCodeReply(); + } + + public String hsetnx(final String key, final String field, + final String value) { + client.hsetnx(key, field, value); + return client.getStatusCodeReply(); + } + + public String hmset(final String key, final Map hash) { + client.hmset(key, hash); + return client.getStatusCodeReply(); + } + + public String hmget(final String key, final String... fields) { + client.hmget(key, fields); + return client.getStatusCodeReply(); + } + + public String hincrBy(final String key, final String field, final int value) { + client.hincrBy(key, field, value); + return client.getStatusCodeReply(); + } + + public String hexists(final String key, final String field) { + client.hexists(key, field); + return client.getStatusCodeReply(); + } + + public String hdel(final String key, final String field) { + client.hdel(key, field); + return client.getStatusCodeReply(); + } + + public String hlen(final String key) { + client.hlen(key); + return client.getStatusCodeReply(); + } + + public String hkeys(final String key) { + client.hkeys(key); + return client.getStatusCodeReply(); + } + + public String hvals(final String key) { + client.hvals(key); + return client.getStatusCodeReply(); + } + + public String hgetAll(final String key) { + client.hgetAll(key); + return client.getStatusCodeReply(); + } + + public String rpush(final String key, final String string) { + client.rpush(key, string); + return client.getStatusCodeReply(); + } + + public String lpush(final String key, final String string) { + client.lpush(key, string); + return client.getStatusCodeReply(); + } + + public String llen(final String key) { + client.llen(key); + return client.getStatusCodeReply(); + } + + public String lrange(final String key, final int start, final int end) { + client.lrange(key, start, end); + return client.getStatusCodeReply(); + } + + public String ltrim(String key, final int start, final int end) { + client.ltrim(key, start, end); + return client.getStatusCodeReply(); + } + + public String lindex(final String key, final int index) { + client.lindex(key, index); + return client.getStatusCodeReply(); + } + + public String lset(final String key, final int index, final String value) { + client.lset(key, index, value); + return client.getStatusCodeReply(); + } + + public String lrem(final String key, final int count, final String value) { + client.lrem(key, count, value); + return client.getStatusCodeReply(); + } + + public String lpop(final String key) { + client.lpop(key); + return client.getStatusCodeReply(); + } + + public String rpop(final String key) { + client.rpop(key); + return client.getStatusCodeReply(); + } + + public String rpoplpush(final String srckey, final String dstkey) { + client.rpoplpush(srckey, dstkey); + return client.getStatusCodeReply(); + } + + public String sadd(final String key, final String member) { + client.sadd(key, member); + return client.getStatusCodeReply(); + } + + public String smembers(final String key) { + client.smembers(key); + return client.getStatusCodeReply(); + } + + public String srem(final String key, final String member) { + client.srem(key, member); + return client.getStatusCodeReply(); + } + + public String spop(final String key) { + client.spop(key); + return client.getStatusCodeReply(); + } + + public String smove(final String srckey, final String dstkey, + final String member) { + client.smove(srckey, dstkey, member); + return client.getStatusCodeReply(); + } + + public String scard(final String key) { + client.scard(key); + return client.getStatusCodeReply(); + } + + public String sismember(final String key, final String member) { + client.sismember(key, member); + return client.getStatusCodeReply(); + } + + public String sinter(final String... keys) { + client.sinter(keys); + return client.getStatusCodeReply(); + } + + public String sinterstore(final String dstkey, final String... keys) { + client.sinterstore(dstkey, keys); + return client.getStatusCodeReply(); + } + + public String sunion(final String... keys) { + client.sunion(keys); + return client.getStatusCodeReply(); + } + + public String sunionstore(final String dstkey, final String... keys) { + client.sunionstore(dstkey, keys); + return client.getStatusCodeReply(); + } + + public String sdiff(final String... keys) { + client.sdiff(keys); + return client.getStatusCodeReply(); + } + + public String sdiffstore(final String dstkey, final String... keys) { + client.sdiffstore(dstkey, keys); + return client.getStatusCodeReply(); + } + + public String srandmember(final String key) { + client.srandmember(key); + return client.getStatusCodeReply(); + } + + public String zadd(final String key, final double score, final String member) { + client.zadd(key, score, member); + return client.getStatusCodeReply(); + } + + public String zrange(final String key, final int start, final int end) { + client.zrange(key, start, end); + return client.getStatusCodeReply(); + } + + public String zrem(final String key, final String member) { + client.zrem(key, member); + return client.getStatusCodeReply(); + } + + public String zincrby(final String key, final double score, + final String member) { + client.zincrby(key, score, member); + return client.getStatusCodeReply(); + } + + public String zrank(final String key, final String member) { + client.zrank(key, member); + return client.getStatusCodeReply(); + } + + public String zrevrank(final String key, final String member) { + client.zrevrank(key, member); + return client.getStatusCodeReply(); + } + + public String zrevrange(final String key, final int start, final int end) { + client.zrevrange(key, start, end); + return client.getStatusCodeReply(); + } + + public String zrangeWithScores(final String key, final int start, + final int end) { + client.zrangeWithScores(key, start, end); + return client.getStatusCodeReply(); + } + + public String zrevrangeWithScores(final String key, final int start, + final int end) { + client.zrevrangeWithScores(key, start, end); + return client.getStatusCodeReply(); + } + + public String zcard(final String key) { + client.zcard(key); + return client.getStatusCodeReply(); + } + + public String zscore(final String key, final String member) { + client.zscore(key, member); + return client.getStatusCodeReply(); + } + + public String sort(final String key) { + client.sort(key); + return client.getStatusCodeReply(); + } + + public String sort(final String key, final SortingParams sortingParameters) { + client.sort(key, sortingParameters); + return client.getStatusCodeReply(); + } } \ No newline at end of file