tinylfu

package module
v0.0.0-...-c8e5d79 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2023 License: MIT Imports: 3 Imported by: 3

Documentation

Overview

Package tinylfu is an implementation of the TinyLFU caching algorithm

http://arxiv.org/abs/1512.00727

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type T

type T[V any] struct {
	// contains filtered or unexported fields
}

func New

func New[V any](size int, samples int) *T[V]

func (*T[V]) Add

func (t *T[V]) Add(key string, val V)

func (*T[V]) Get

func (t *T[V]) Get(key string) (V, bool)

Directories

Path Synopsis
internal
list
Package list implements a doubly linked list.
Package list implements a doubly linked list.

Jump to

Keyboard shortcuts

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