3 ms·
Actually, I'd probably get stuck at: if it's only three hours of work to add mult to memcached, why isn't it already there?
by xw31099 3y ago
Actually, I'd probably get stuck at: if it's only three hours of work to add mult to memcached, why isn't it already there?
- bpicolo 3y agoProbably because it’s not a particularly common real world need. Have you ever found yourself grasping for a multiply command in a cache?
- xw31099 3y agoNo. But I don't often work on databases so I don't find myself grasping for any commands in a cache. It's hard to imagine that if there's a use case for adding a delta there's not also a use case for multiply by constant. But I'm not familiar with the market so maybe I'm wrong.
- jstanley 3y agoYou add a delta in any situation where you want to track "how many" of something. (Page views, for example). I can't immediately imagine when you would want to multiply.
- bpicolo 3y agoThe one I can think of is tuning circuit breakers so that failures are additive but successes decrease more multiplicatively/exponentially, which helps with fast recovery. That’s more dividing than multiplying though