I used to be anxious about my memory, but reframing my brain as a cache helped me worry less. If you’ve got memory anxiety, maybe this can help you too.
Image a local grocer with a couple employees (connection pool) and curb-side pickup. Customers can drive up, hand over a grocery list (request), and leave with their groceries (dat
Varnish sits in front of any HTTP compatible server, and it can be configured to selectively cache the contents. Here's how to set it up and tweak it.
With Groovy's definition of truth, the elvis operator can lead to confusing results. Make sure that it's actually going to do what you want.
Dynamic languages have good generic forms of memoization, but I haven't found one I'm happy with in C#. This is a sketch of a generic memoization in C#.