Local stats counters class (for usage in cache server or slave server modules). Counts stats events by ID and resets daily.
Note: This class is not thread-safe!
new (?opt:_LocalStatsOptions)
Creates a new stats storage.
dump ():List<_LocalStatsRecord>
Dumps stats.
Returns:
A list of stats records.
event (id:String, ?count:Float):Void
Counts a stats event.
Parameters:
id
Stats event ID.
count
Amount to increase the counter with.
inline reset ():Void
Resets stats counters.