class

Dumpster::Counter(T)

Inherits Reference < Object

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...

Constructors

Instance methods

count(key : T) : Count
Source
each(*args, **options)
Source
each(*args, **options, &)
Source
increment(key : T) : Count
Source

Nested types