Module: tastypie/lib/throttle

A No op resource throttle implementation, for testing / debuging


new (require("tastypie/lib/throttle"))( [options])

Parameters:
Name Type Argument Description
options Object <optional>
Properties
Name Type Argument Default Description
at Number <optional>
150

number of request to start throttling

Source:

Requires

Classes

Memory

Methods


convert(id)

creates a namespaced key based on an id

Parameters:
Name Type Description
id String

the internal key to record

Source:
Returns:

key

Type
String

incr(id)

Records an entry for a given keyf

Parameters:
Name Type Description
id String

the internal key to record

Source:

toThrottle(id)

Checks if a given key has reached the configured throttling limit

Parameters:
Name Type Description
id String

the internal key to record

Source:
Returns:
Type
Boolean