Registry / utility / mzack9999-gcache

mzack9999-gcache

JSON →
library0.0.0-20230410081825-519e28eab057gogounverified

An in-memory cache library for Go with TTL support.

go get github.com/Mzack9999/gcache
INSTALL
IMPORT
SIG · MZACK9999-GCACHE
M
mzack9999-gcache
utilitygov0.0.0-20230410081825-519e28eab057
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.

gcache
✓ github.com/Mzack9999/gcache

Creates an LRU cache with capacity 10, sets and gets a value.

package main import ( "fmt" "github.com/Mzack9999/gcache" ) func main() { cache := gcache.New(10).LRU().Build() cache.Set("key", "value") val, _ := cache.Get("key") fmt.Println(val) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20230410081825-519e28eab057latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
mzack9999-gcache — go get mzack9999-gcache · libregistry