@Override public Long zunionstore(final byte[] dstkey, final ZParams params, final byte[]... sets) { byte[][] wholeKeys = KeyMergeUtil.merge(dstkey, sets); return new JedisClusterCommand<Long>(connectionHandler, maxRedirections) { @Override public Long execute(Jedis connection) { return connection.zunionstore(dstkey, params, sets); } }.runBinary(wholeKeys.length, wholeKeys); }
@Override public String pfmerge(final byte[] destkey, final byte[]... sourcekeys) { byte[][] wholeKeys = KeyMergeUtil.merge(destkey, sourcekeys); return new JedisClusterCommand<String>(connectionHandler, maxRedirections) { @Override public String execute(Jedis connection) { return connection.pfmerge(destkey, sourcekeys); } }.runBinary(wholeKeys.length, wholeKeys); }
@Override public String pfmerge(final String destkey, final String... sourcekeys) { String[] mergedKeys = KeyMergeUtil.merge(destkey, sourcekeys); return new JedisClusterCommand<String>(connectionHandler, maxRedirections) { @Override public String execute(Jedis connection) { return connection.pfmerge(destkey, sourcekeys); } }.run(mergedKeys.length, mergedKeys); }
@Override public Long bitop(final BitOP op, final byte[] destKey, final byte[]... srcKeys) { byte[][] wholeKeys = KeyMergeUtil.merge(destKey, srcKeys); return new JedisClusterCommand<Long>(connectionHandler, maxRedirections) { @Override public Long execute(Jedis connection) { return connection.bitop(op, destKey, srcKeys); } }.runBinary(wholeKeys.length, wholeKeys); }
@Override public Long sdiffstore(final String dstkey, final String... keys) { String[] mergedKeys = KeyMergeUtil.merge(dstkey, keys); return new JedisClusterCommand<Long>(connectionHandler, maxRedirections) { @Override public Long execute(Jedis connection) { return connection.sdiffstore(dstkey, keys); } }.run(mergedKeys.length, mergedKeys); }
@Override public Long zunionstore(final String dstkey, final ZParams params, final String... sets) { String[] mergedKeys = KeyMergeUtil.merge(dstkey, sets); return new JedisClusterCommand<Long>(connectionHandler, maxRedirections) { @Override public Long execute(Jedis connection) { return connection.zunionstore(dstkey, params, sets); } }.run(mergedKeys.length, mergedKeys); }
@Override public Long sdiffstore(final byte[] dstkey, final byte[]... keys) { byte[][] wholeKeys = KeyMergeUtil.merge(dstkey, keys); return new JedisClusterCommand<Long>(connectionHandler, maxRedirections) { @Override public Long execute(Jedis connection) { return connection.sdiffstore(dstkey, keys); } }.runBinary(wholeKeys.length, wholeKeys); }
@Override public Long sinterstore(final byte[] dstkey, final byte[]... keys) { byte[][] wholeKeys = KeyMergeUtil.merge(dstkey, keys); return new JedisClusterCommand<Long>(connectionHandler, maxRedirections) { @Override public Long execute(Jedis connection) { return connection.sinterstore(dstkey, keys); } }.runBinary(wholeKeys.length, wholeKeys); }
@Override public Long sunionstore(final String dstkey, final String... keys) { String[] wholeKeys = KeyMergeUtil.merge(dstkey, keys); return new JedisClusterCommand<Long>(connectionHandler, maxRedirections) { @Override public Long execute(Jedis connection) { return connection.sunionstore(dstkey, keys); } }.run(wholeKeys.length, wholeKeys); }
@Override public Long zunionstore(final byte[] dstkey, final byte[]... sets) { byte[][] wholeKeys = KeyMergeUtil.merge(dstkey, sets); return new JedisClusterCommand<Long>(connectionHandler, maxRedirections) { @Override public Long execute(Jedis connection) { return connection.zunionstore(dstkey, sets); } }.runBinary(wholeKeys.length, wholeKeys); }
@Override public Long sinterstore(final String dstkey, final String... keys) { String[] mergedKeys = KeyMergeUtil.merge(dstkey, keys); return new JedisClusterCommand<Long>(connectionHandler, maxRedirections) { @Override public Long execute(Jedis connection) { return connection.sinterstore(dstkey, keys); } }.run(mergedKeys.length, mergedKeys); }
@Override public Long zinterstore(final String dstkey, final String... sets) { String[] wholeKeys = KeyMergeUtil.merge(dstkey, sets); return new JedisClusterCommand<Long>(connectionHandler, maxRedirections) { @Override public Long execute(Jedis connection) { return connection.zinterstore(dstkey, sets); } }.run(wholeKeys.length, wholeKeys); }
@Override public Long zinterstore(final String dstkey, final ZParams params, final String... sets) { String[] mergedKeys = KeyMergeUtil.merge(dstkey, sets); return new JedisClusterCommand<Long>(connectionHandler, maxRedirections) { @Override public Long execute(Jedis connection) { return connection.zinterstore(dstkey, params, sets); } }.run(mergedKeys.length, mergedKeys); }
@Override public Long sunionstore(final byte[] dstkey, final byte[]... keys) { byte[][] wholeKeys = KeyMergeUtil.merge(dstkey, keys); return new JedisClusterCommand<Long>(connectionHandler, maxRedirections) { @Override public Long execute(Jedis connection) { return connection.sunionstore(dstkey, keys); } }.runBinary(wholeKeys.length, wholeKeys); }
@Override public Long zinterstore(final byte[] dstkey, final byte[]... sets) { byte[][] wholeKeys = KeyMergeUtil.merge(dstkey, sets); return new JedisClusterCommand<Long>(connectionHandler, maxRedirections) { @Override public Long execute(Jedis connection) { return connection.zinterstore(dstkey, sets); } }.runBinary(wholeKeys.length, wholeKeys); }
@Override public Long zinterstore(final byte[] dstkey, final ZParams params, final byte[]... sets) { byte[][] wholeKeys = KeyMergeUtil.merge(dstkey, sets); return new JedisClusterCommand<Long>(connectionHandler, maxRedirections) { @Override public Long execute(Jedis connection) { return connection.zinterstore(dstkey, params, sets); } }.runBinary(wholeKeys.length, wholeKeys); }
@Override public Long zunionstore(final String dstkey, final String... sets) { String[] mergedKeys = KeyMergeUtil.merge(dstkey, sets); return new JedisClusterCommand<Long>(connectionHandler, maxRedirections) { @Override public Long execute(Jedis connection) { return connection.zunionstore(dstkey, sets); } }.run(mergedKeys.length, mergedKeys); }
@Override public Long bitop(final BitOP op, final String destKey, final String... srcKeys) { String[] mergedKeys = KeyMergeUtil.merge(destKey, srcKeys); return new JedisClusterCommand<Long>(connectionHandler, maxRedirections) { @Override public Long execute(Jedis connection) { return connection.bitop(op, destKey, srcKeys); } }.run(mergedKeys.length, mergedKeys); }