lfu

package
v0.0.0-...-4056b1e Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyType

type KeyType interface {
	~int | ~string | ~uint | ~float32 | ~float64
}

type LFU

type LFU[T KeyType] struct {
	// contains filtered or unexported fields
}

func New

func New[T KeyType](cap int) *LFU[T]

func (*LFU[T]) Del

func (c *LFU[T]) Del(key T)

func (*LFU[T]) Get

func (c *LFU[T]) Get(key T) interface{}

func (*LFU[T]) GetOp

func (c *LFU[T]) GetOp() int

func (*LFU[T]) Set

func (c *LFU[T]) Set(key T, value interface{})

func (*LFU[T]) ShowHeap

func (c *LFU[T]) ShowHeap()

Jump to

Keyboard shortcuts

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