s3fifo

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 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 added in v0.1.3

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

func (*S3FIFO[K, V]) Close added in v1.0.0

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 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)

func (*S3FIFO[K, V]) SetOnEvicted added in v1.0.0

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