TTL counter
TTL counter allow you to define some counters with TTL expire. Also you can call callback, when some threshold of counter reached.
Example
; ; // On error callttlCounter.count'error';
TTL counter allow you to define some counters with TTL expire. Also you can call callback, when some threshold of counter reached.
; ; // On error callttlCounter.count'error';
npm i ttl-counter
24
1.0.3
MIT
2.69 kB
4