Memcached extensions for PHP: some caveats

There are two PHP extensions to work with Memcached, which go by the somewhat unfortunate names of Memcache and Memcached (note the missing ending ‘d’ in the first one). In this post I’m going to share my experience of using them together, either to migrate from one to the other or use them simultaneously, and…

Continue reading →

Memcached and careless preloading

This is a short story about how I became aware of the dangers of “careless preloading”, while learning a bit about memcached internals along the way. A few years ago, while working on a high traffic app on the Facebook platform, I ran across a caching bug. All of a sudden, our memcached servers had…

Continue reading →