Registry / utility / code-hex-go-generics-cache

code-hex-go-generics-cache

JSON →
library1.5.1gogounverified

A generic cache library for Go using generics, supporting various eviction policies.

go get github.com/Code-Hex/go-generics-cache
INSTALL
IMPORT
SIG · CODE-HEX-GO-GENERI
C
code-hex-go-generics-cache
utilitygov1.5.1
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.

cache
github.com/Code-Hex/go-generics-cache

Creates a generic cache and performs basic set/get operations.

package main import ( "fmt" "github.com/Code-Hex/go-generics-cache" ) func main() { c := cache.New[string, int]() c.Set("key", 42) val, ok := c.Get("key") if ok { fmt.Println(val) } }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
code-hex-go-generics-cache — go get code-hex-go-generics-cache · libregistry