Registry / utility / coocood-freecache

coocood-freecache

JSON →
library1.2.7gogounverified

Package freecache provides a fast and memory-efficient cache library for Go.

go get github.com/coocood/freecache
INSTALL
IMPORT
SIG · COOCOOD-FREECACHE
C
coocood-freecache
utilitygov1.2.7
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.

freecache
github.com/coocood/freecache

Create a cache, set and get a value

package main import ( "fmt" "github.com/coocood/freecache" ) func main() { cache := freecache.NewCache(100 * 1024) // 100KB cache.Set([]byte("key"), []byte("value"), 60) // 60 seconds TTL val, _ := cache.Get([]byte("key")) fmt.Println(string(val)) }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
coocood-freecache — go get coocood-freecache · libregistry