Caching: What could go wrong?
There’s an old saying about regular expressions that I’ve always liked. I think it applies equally to caching. Here’s my version. Some people, when confronted with a performance problem, think “I know, I'll add a cache.” Now they have two problems. It’s so tempting to address a performance problem by adding a cache. After all, classes like D...