Documentation ¶
Index ¶
- type Sieve
- func (s *Sieve[K, V]) Close()
- func (s *Sieve[K, V]) Contains(key K) (ok bool)
- func (s *Sieve[K, V]) Get(key K) (value V, ok bool)
- func (s *Sieve[K, V]) Len() int
- func (s *Sieve[K, V]) Peek(key K) (value V, ok bool)
- func (s *Sieve[K, V]) Purge()
- func (s *Sieve[K, V]) Remove(key K) (ok bool)
- func (s *Sieve[K, V]) Set(key K, value V)
- func (s *Sieve[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 Sieve ¶
type Sieve[K comparable, V any] struct { // contains filtered or unexported fields }
func (*Sieve[K, V]) SetOnEvicted ¶ added in v1.0.0
func (s *Sieve[K, V]) SetOnEvicted(callback types.OnEvictCallback[K, V])
Click to show internal directories.
Click to hide internal directories.