Registry /
utility / whyrusleeping-timecache
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.