Jedis does support lpushx and rpushx

Conflicts:

	src/main/java/redis/clients/jedis/BinaryJedisCommands.java
	src/main/java/redis/clients/jedis/Pipeline.java
This commit is contained in:
Ivo Ramirez
2011-12-21 06:19:05 +01:00
committed by ivowiblo
parent be163acd52
commit e8c27e0d15
5 changed files with 30 additions and 1 deletions

View File

@@ -190,6 +190,17 @@ public class BinaryShardedJedis extends Sharded<Jedis, JedisShardInfo>
return j.lpush(key, string);
}
public Long lpushx(byte[] key, byte[] string) {
Jedis j = getShard(key);
return j.lpushx(key, string);
}
public Long rpushx(byte[] key, byte[] string) {
Jedis j = getShard(key);
return j.rpushx(key, string);
}
public Long llen(byte[] key) {
Jedis j = getShard(key);
return j.llen(key);