$rate_limit->protected_actions(failed_login => {timeframe => '10s', max_hits => 2 });