Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LockMap ¶
type LockMap[K comparable] interface { GetLock(K) *sync.Mutex }
LockMap provides a mechanism to get a lock for a given key.
func NewExpiringLockMap ¶
NewExpiringLockMap returns a new LockMap that removes entries after the given TTL. Timing of the removal is done in a best-effort fashion, and is not guaranteed to be exact.
Click to show internal directories.
Click to hide internal directories.