eviction

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheLFU

type CacheLFU struct {
	// contains filtered or unexported fields
}

func NewCacheLFU

func NewCacheLFU() CacheLFU

func (*CacheLFU) Delete

func (cache *CacheLFU) Delete(key string)

func (*CacheLFU) Len

func (cache *CacheLFU) Len() int

func (*CacheLFU) Less

func (cache *CacheLFU) Less(i, j int) bool

func (*CacheLFU) Pop

func (cache *CacheLFU) Pop() any

func (*CacheLFU) Push

func (cache *CacheLFU) Push(key any)

func (*CacheLFU) Swap

func (cache *CacheLFU) Swap(i, j int)

func (*CacheLFU) Update

func (cache *CacheLFU) Update(key string)

type CacheLRU

type CacheLRU struct {
	// contains filtered or unexported fields
}

func NewCacheLRU

func NewCacheLRU() CacheLRU

func (*CacheLRU) Delete

func (cache *CacheLRU) Delete(key string)

func (*CacheLRU) Len

func (cache *CacheLRU) Len() int

func (*CacheLRU) Less

func (cache *CacheLRU) Less(i, j int) bool

func (*CacheLRU) Pop

func (cache *CacheLRU) Pop() any

func (*CacheLRU) Push

func (cache *CacheLRU) Push(key any)

func (*CacheLRU) Swap

func (cache *CacheLRU) Swap(i, j int)

func (*CacheLRU) Update

func (cache *CacheLRU) Update(key string)

type EntryLFU

type EntryLFU struct {
	// contains filtered or unexported fields
}

type EntryLRU

type EntryLRU struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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