Implements basic memcache-based rate-limiting.