public void addOperation(CASOperation op) {
    ops.add(op);

    // Count the bytes required by this operation.
    Iterator<String> is = op.getKeys().iterator();
    String k = is.next();
    int keylen = KeyUtil.getKeyBytes(k).length;

    byteCount += MIN_RECV_PACKET + StoreOperationImpl.EXTRA_LEN + keylen
      + op.getData().length;
  }
Construct an optimized get starting with the given get operation.
src/main/java/net/spy/memcached/protocol/binary/OptimizedSetImpl.java