write a client for memcached server