3 ms·
The prompt literally says > Via its incr and decr commands, memcached provides a built-in way to atomically add to a number. But it doesn’t provide other arith
by yuliyp 3y ago
The prompt literally says
> Via its incr and decr commands, memcached provides a built-in way to atomically add to a number. But it doesn’t provide other arithmetic operations; in particular, there is no “atomic multiply by ” operation.
Going from that to "maybe I should implement multiply similar to incr" is not a big enough leap to call it "Eureka" in my mind.