package
2.2.2+incompatible
Repository: https://github.com/sunlidea/limiter.git
Documentation: pkg.go.dev
# Functions
NewCache returns a new cache.
NewStore creates a new instance of memory store with defaults.
NewStoreWithOptions creates a new instance of memory store with options.
# Structs
Cache contains a collection of counters.
CacheWrapper is used to ensure that the underlying cleaner goroutine used to clean expired keys will not prevent Cache from being garbage collected.
Counter is a simple counter with an optional expiration.
Store is the in-memory store.