Versions in this module Expand all Collapse all v0 v0.1.6 Jan 13, 2023 Changes in this version + type Counter struct + func NewCounter(size int, cardinalityHint int, onEvict func(T)) *Counter[T] + func (c *Counter[T]) Get(value T) int + func (c *Counter[T]) GetAll() map[T]int + func (c *Counter[T]) Lifetime() int + func (c *Counter[T]) Observe(value T) + func (c *Counter[T]) String() string + type LockedCounter struct + func NewLocked(counter *Counter[T]) *LockedCounter[T] + func (lc *LockedCounter[T]) Get(value T) int + func (lc *LockedCounter[T]) GetAll() map[T]int + func (lc *LockedCounter[T]) Lifetime() int + func (lc *LockedCounter[T]) Observe(value T) + func (lc *LockedCounter[T]) String() string