Add strlen to ShardedJedis

This commit is contained in:
guycoleman
2012-12-03 15:42:15 +00:00
parent 0340fddb3a
commit 6bede66493
2 changed files with 10 additions and 0 deletions

View File

@@ -195,6 +195,11 @@ public class BinaryShardedJedis extends Sharded<Jedis, JedisShardInfo>
return j.lpush(key, strings);
}
public Long strlen(final byte[] key) {
Jedis j = getShard(key);
return j.strlen(key);
}
public Long lpushx(byte[] key, byte[] string) {
Jedis j = getShard(key);
return j.lpushx(key, string);