Memcached and tpserver-cpp
Posted 2010-01-20-0851
At LCA yesterday I sat in on a miniconf presentation on memcached. It has inspired me to rewrite part of tpserver-cpp, to gut the Manager objects and use memcached instead.
But first I needed a library to make using memcached easier. The normal approach for C is to use libmemcached, but using C++ there are a few other options. Consistent with the development direction of tpserver-cpp, I was looking for a C++ library that is using boost, and especially boost::asio. I found two libraries, a better maintained one that doesn't do asynchronous networking and calls (memcache++, and one that does do asynchronous but hasn't been updated in over a year(memcacheasio). So for now, I'm going to use memcache++ with a short timeout, which should give an option of going to async in future.