A couple functions to communicate with memcached from C code