class Dumpster::Counter(T)
- Dumpster::Counter(T)
- Reference
- Object
Overview
Util for tracking a set of counters associated with keys of an arbitary type.
OPTIMIZE depending on number of entries being tracked, there may be a point where it make sense to swap this out for a count-min-sketch, but a Hash is simple for now...
Defined in:
dumpster/counter.crConstructors
Instance Method Summary
- #count(key : T) : Count
- #each(*args, **options)
- #each(*args, **options, &)
- #increment(key : T) : Count