ch.write(new Command(set, numToBytes(i, false), VALUE));
}
public static void main(String[] args) throws Exception {
final SocketChannel ch = new NioSocketChannel();
new NioEventLoopGroup().register(ch);
final long start = System.currentTimeMillis();
ch.pipeline().addLast(new RedisCommandEncoder(), new RedisReplyDecoder());
ch.connect(new InetSocketAddress("localhost", 6379)).addListener(new ChannelFutureListener() {
@Override
public void operationComplete(ChannelFuture channelFuture) throws Exception {