def get_usage_multi(prefix_slices):
 keys = [_make_ratelimit_cache_key(k, t) for (k, t) in prefix_slices]
 try:
  values = g.ratelimitcache.get_multi(keys)
  return [values.get(k, 0) for k in keys]
 except pylibmc.Error as e:
  raise RatelimitError(e)

def get_usage_multi ( prefix_slices ) : keys = [ _make_ratelimit_cache_key ( k , t ) for ( k , t ) in prefix_slices ] try : values = g . ratelimitcache . get_multi ( keys ) return [ values . get ( k , 0 ) for k in keys ] except pylibmc . Error as e : raise RatelimitError ( e )
return the current usage of several rate limits .