Versions in this module Expand all Collapse all v0 v0.10.0 Dec 16, 2023 Changes in this version + type Counter struct + func New(ttl time.Duration, opts ...Option) *Counter + func (c *Counter) DeleteExpired() + func (c *Counter) Get(key string, window time.Time) (int, error) + func (c *Counter) Increment(key string, currWindow time.Time) error + type Option func(*Counter) + func DisableAutoDeleteExpired() Option + func WithCapacity(capacity uint64) Option