s3fifo

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New added in v0.1.3

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

Types

type S3FIFO

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

func (*S3FIFO[K, V]) Contains

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

func (*S3FIFO[K, V]) Get

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

func (*S3FIFO[K, V]) Len

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

func (*S3FIFO[K, V]) Peek

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

func (*S3FIFO[K, V]) Purge added in v0.1.3

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

func (*S3FIFO[K, V]) Remove added in v0.1.4

func (s *S3FIFO[K, V]) Remove(key K) (ok bool)

func (*S3FIFO[K, V]) Set

func (s *S3FIFO[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