public void zaddBinary(final byte[] key, Map<Double, byte[]> scoreMembers) {
    """
	Zadd binary.
	
	@param key          the key
	@param scoreMembers the score members
    """
        ArrayList<byte[]> args = new ArrayList<byte[]>(scoreMembers.size() * 2 + 1);

        args.add(key);

        for (Map.Entry<Double, byte[]> entry : scoreMembers.entrySet()) {
            args.add(RedisProtocol.toByteArray(entry.getKey()));
            args.add(entry.getValue());
        }

        byte[][] argsArray = new byte[args.size()][];
        args.toArray(argsArray);

        sendCommand(Command.ZADD, argsArray);
    }
public void zaddBinary(final byte[] key, Map<Double, byte[]> scoreMembers) {
        ArrayList<byte[]> args = new ArrayList<byte[]>(scoreMembers.size() * 2 + 1);

        args.add(key);

        for (Map.Entry<Double, byte[]> entry : scoreMembers.entrySet()) {
            args.add(RedisProtocol.toByteArray(entry.getKey()));
            args.add(entry.getValue());
        }

        byte[][] argsArray = new byte[args.size()][];
        args.toArray(argsArray);

        sendCommand(Command.ZADD, argsArray);
    }
public void zaddBinary ( final byte [ ] key , Map < Double , byte [ ] > scoreMembers ) { ArrayList < byte [ ] > args = new ArrayList < byte [ ] > ( scoreMembers . size ( ) * 2 + 1 ) ; args . add ( key ) ; for ( Map . Entry < Double , byte [ ] > entry : scoreMembers . entrySet ( ) ) { args . add ( RedisProtocol . toByteArray ( entry . getKey ( ) ) ) ; args . add ( entry . getValue ( ) ) ; } byte [ ] [ ] argsArray = new byte [ args . size ( ) ] [ ] ; args . toArray ( argsArray ) ; sendCommand ( Command . ZADD , argsArray ) ; }
Zadd binary.

@param key          the key
@param scoreMembers the score members
Zadd binary .