Registry / utility / robfig-go-cache

robfig-go-cache

JSON →
library0.0.0-20130306151617-9fc39e0dbf62gogounverified

An in-memory key:value store/cache library for Go.

go get github.com/robfig/go-cache
INSTALL
IMPORT
SIG · ROBFIG-GO-CACHE
R
robfig-go-cache
utilitygov0.0.0-20130306151617-9fc39e0dbf62
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/robfig/go-cache

Create a cache, set a key, and retrieve it.

package main import ( "fmt" "github.com/robfig/go-cache" "time" ) func main() { c := cache.New(5*time.Minute, 10*time.Minute) c.Set("key", "value", cache.DefaultExpiration) val, _ := c.Get("key") fmt.Println(val) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20130306151617-9fc39e0dbf62latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
10
Resources
robfig-go-cache — go get robfig-go-cache · libregistry