3 ms·
I was obviously just kidding with the other operations, but the API issue is relevant.
by JohnKemeny 3y ago
I was obviously just kidding with the other operations, but the API issue is relevant.
- arp242 3y agoRight so – that wasn't clear to me. You'd be surprised how much some people will over-engineer some interview questions like that (even when you very explicitly tell them to use the simplest thing possible). The memcached protocol really is as simple as "CMD [params]", all of which is parsed for you, and this API is just "MULT num1 num2". There are no tricky bits or hidden complexities here as far as I can see.
- JohnKemeny 3y agoYes, the protocol is obvious, but you need to look at `do_add_delta`.