Registry / utility / whyrusleeping-timecache

whyrusleeping-timecache

JSON →
library0.0.0-20160911033111-cfcb2f1abfeegogounverified

A simple time-based cache with expiration for Go.

go get github.com/whyrusleeping/timecache
INSTALL
IMPORT
SIG · WHYRUSLEEPING-TIME
W
whyrusleeping-timecache
utilitygov0.0.0-20160911033111-cfcb2f1abfee
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.

timecache
github.com/whyrusleeping/timecache

Creates a time cache and stores/retrieves a value.

package main import ( "fmt" "time" "github.com/whyrusleeping/timecache" ) func main() { tc := timecache.New(5 * time.Minute) tc.Add("key", "value") val, ok := tc.Get("key") fmt.Println(val, ok) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20160911033111-cfcb2f1abfeelatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
10
Resources
whyrusleeping-timecache — go get whyrusleeping-timecache · libregistry