Section3 pages
Counter functions
Functions to read, increment and set persistent named counters in your workspace.
counters.set(name, value, counterFile?)Sets a specific value for a named counter, stored in default or custom location. Used for initializing or correcting counter values.counters.get(name, counterFile?)Retrieves the current numerical value of a named counter, allowing you to monitor and track the state of various counters in your…counters.inc(name, value?, counterFile?)Increments a named counter and returns the new value. A counter that does not exist starts from 0, so the first call returns the increment…