NAME

Gungho::Component::Throttle::Simple - Throttle By Number Of Requests

SYNOPSIS

---
throttle:
  simple:
    max_items 1000
    interval: 3600
components:
  - Throttle::Simple

METHODS

setup

throttle($request)

Checks if a request can be executed succesfully. Returns 1 if it's ok to execute the request.