def throttle_status(actor_ref, action, bucket, max):
  """ check whether a throttling threshold has been hit
  """
  cache_key = throttle_key(actor_ref, action, bucket)
  count = memcache.client.get(cache_key)
  if count >= max:
    return True
  return False
dataset/ETHPy150Open CollabQ/CollabQ/common/throttle.py/throttle_status/original