Use memcached for rate-limiting the API calls.