Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache[K comparable] struct { sync.Mutex // contains filtered or unexported fields }
Cache is a set of unique keys of type K.
func (*Cache[K]) GetAllAndClear ¶
func (c *Cache[K]) GetAllAndClear() map[K]struct{}
GetAllAndClear returns the current state of cache and clears the cache.
Click to show internal directories.
Click to hide internal directories.