Last updated March 2020
msys.counter.add — Add to the current value of the specified counter
object_or_path: mixed delta: number
The first argument is either a path to a counter (for example,
/sites/site_name/errors) or a counter object that was returned by
msys.counter.open. If a string is provided containing the path to a counter that does not exist, the counter is created with STRICT semantics. The second argument is atomically added to the current value of the counter.
Enable this function with the statement
For a code example see “msys.counter.read example”.
Was this page helpful?