sieve

package
v0.0.0-...-2724a9d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 8, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New[K comparable, V any](size int) fifo.Cache[K, V]

Types

type Sieve

type Sieve[K comparable, V any] struct {
	// contains filtered or unexported fields
}

func (*Sieve[K, V]) Contains

func (s *Sieve[K, V]) Contains(key K) (ok bool)

func (*Sieve[K, V]) Get

func (s *Sieve[K, V]) Get(key K) (value V, ok bool)

func (*Sieve[K, V]) Len

func (s *Sieve[K, V]) Len() int

func (*Sieve[K, V]) Peek

func (s *Sieve[K, V]) Peek(key K) (value V, ok bool)

func (*Sieve[K, V]) Purge

func (s *Sieve[K, V]) Purge()

func (*Sieve[K, V]) Set

func (s *Sieve[K, V]) Set(key K, value V)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL