Registry / utility / vmihailenco-go-tinylfu

vmihailenco-go-tinylfu

JSON →
library0.2.2gogounverified

Package tinylfu is an implementation of the TinyLFU caching algorithm.

go get github.com/vmihailenco/go-tinylfu
INSTALL
IMPORT
SIG · VMIHAILENCO-GO-TIN
V
vmihailenco-go-tinylfu
utilitygov0.2.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

tinylfu
✓ github.com/vmihailenco/go-tinylfu

Create a TinyLFU cache and perform basic operations

package main import ( "fmt" "github.com/vmihailenco/go-tinylfu" ) func main() { cache := tinylfu.New(100, 1000) cache.Set("key", "value") val, ok := cache.Get("key") fmt.Println(val, ok) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.2.2latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
8
Amazon
1
Resources
vmihailenco-go-tinylfu — go get vmihailenco-go-tinylfu · libregistry