Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("not found")
Functions ¶
This section is empty.
Types ¶
type Lockable ¶
type Lockable[K Key, V any] struct { *LRU[K, *lockableItem[V]] // contains filtered or unexported fields }
func NewLockable ¶
func (*Lockable[K, V]) GetAndLock ¶
func (*Lockable[K, V]) PutAndLock ¶
func (c *Lockable[K, V]) PutAndLock(key K, value V)
func (*Lockable[K, V]) SaveAndUnlock ¶
Click to show internal directories.
Click to hide internal directories.