Follow memcached example.