|
Whitebeam Template Reference Documentation
|
System Template
set()
See Also
rb.counter.() Syntax
count = rb.counter.set(counterName, value, maxLifeTime)
Parameters
The 'set' method takes 3 parameters:
Name | Type/Value | Range/Length | Description | counterName | string | | Required. A name that uniquely identifies this counter | value | number | | Required. Initial value for this counter | maxLifeTime | number | | Optional, default = 1800 Maximum time (in seconds) this variable will exist if it is not read or updated by the system. The default is 1800 (30 minutes). |
Results
The 'set' method returns structure:
Remarks rb.counter.setSet a counter to a specific value - forcing an overwrite of any existing value - creating the counter if it did not already exist. return: The old value of the counter - or null if this request has created the counter. |
|
(loadtime : 84ms) |