s3fifo

package
v0.0.0-...-943df0e Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type S3FIFO

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

func New

func New[K comparable, V any](size int, ttl time.Duration) *S3FIFO[K, V]

func (*S3FIFO[K, V]) Close

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

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

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

func (*S3FIFO[K, V]) Remove

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)

func (*S3FIFO[K, V]) SetOnEvicted

func (s *S3FIFO[K, V]) SetOnEvicted(callback types.OnEvictCallback[K, V])

Jump to

Keyboard shortcuts

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