A No op resource throttle implementation, for testing / debuging
new (require("tastypie/lib/throttle"))( [options])
Parameters:
Name | Type | Argument | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
<optional> |
Properties
|
- Source:
Requires
- module:tastypie/lib/class
- module:tastypie/lib/class/options
- module:mout/string/slugify
- module:tastypie/lib/class/parent
Classes
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