Memcached Equals Time Saver

Memcached is a wonderful tool to offload database calls by storing the needed information in cache. One trick I’ve been using to increase productivity is that whenever I know I will be using complex or long running queries, I use a local instance of Memcached to cache the initial database calls. As I debug the output or tweak the logic, the average runtime of the script stays almost constant because the bulk of the processing, database calls, has been cached.

One Response to “Memcached Equals Time Saver”

  1. Dee Simmons Says:

    This sounds interesting. Can you give a (psuedo)code example of this?

Leave a Reply