Copy memcached protocol description from https://github.com/memcached/memcached/blob/master/doc/protocol.txt