Class: Karafka::Web::Tracking::TtlHash
- Inherits:
-
Hash
- Object
- Hash
- Karafka::Web::Tracking::TtlHash
- Defined in:
- lib/karafka/web/tracking/ttl_hash.rb
Overview
Hash that accumulates data that has an expiration date (ttl) Used to keep track of metrics in a window
Instance Method Summary collapse
-
#initialize(ttl) ⇒ TtlHash
constructor
A new instance of TtlHash.