I am writting a tcl memcached client, more as an exersize then anything else, and I have a question about how to handle the protocol memcached uses, here is an example:
set aaa $flag $expire $size\r\n if the above is properly formated it waits for $size bytes followed by a \r\n if there is a problem it gives an error code.