Registry / utility / bluele-gcache

bluele-gcache

JSON →
library0.0.2gogounverified

Package gcache provides an in-memory cache with support for various eviction policies.

go get github.com/bluele/gcache
INSTALL
IMPORT
SIG · BLUELE-GCACHE
B
bluele-gcache
utilitygov0.0.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.

gcache
github.com/bluele/gcache

Create an LRU cache with gcache

package main import ( "fmt" "github.com/bluele/gcache" ) func main() { gc := gcache.New(10).LRU().Build() gc.Set("key", "value") if val, err := gc.Get("key"); err == nil { fmt.Println(val) } }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
16 hits · last 30 days
node
14
Amazon
1
Bingbot
1
Resources
bluele-gcache — go get bluele-gcache · libregistry