Daisuke Maki > Gungho > Gungho::Component::Throttle::Simple

Download:
Gungho-0.09008.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  6
Open  4
View/Report Bugs
Source  

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.

syntax highlighting: