Add dynamic strategy builder
throttle = Redis::Throttle.build do |user|
if user.admin?
bucket(:admins)
concurrency(limit: 100, ttl: 60)
else
bucket(:users)
concurrency(limit: 50, ttl: 600)
end
token("user:#{user.id}")
end
throttle.call(User.last) do
# ...
end