Documentation ¶
Index ¶
- type Lever
- func (s *Lever[K, V]) Close()
- func (s *Lever[K, V]) Contains(key K) (ok bool)
- func (s *Lever[K, V]) Get(key K) (value V, ok bool)
- func (s *Lever[K, V]) Len() int
- func (s *Lever[K, V]) Peek(key K) (value V, ok bool)
- func (s *Lever[K, V]) Purge()
- func (s *Lever[K, V]) Remove(key K) (ok bool)
- func (s *Lever[K, V]) Set(key K, value V)
- func (s *Lever[K, V]) SetOnEvicted(callback types.OnEvictCallback[K, V])
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Lever ¶
type Lever[K comparable, V any] struct { // contains filtered or unexported fields }
func (*Lever[K, V]) SetOnEvicted ¶
func (s *Lever[K, V]) SetOnEvicted(callback types.OnEvictCallback[K, V])
Click to show internal directories.
Click to hide internal directories.