MCPcopy Create free account
hub / github.com/devfeel/dotweb / DoSet

Function DoSet

cache/cache_test.go:15–18  ·  view source on GitHub ↗
(cache Cache)

Source from the content-addressed store, hash-verified

13}
14
15func DoSet(cache Cache) {
16 expire := 60 // expire in 60 seconds
17 cache.Set(key, val, int64(expire))
18}
19
20func DoGet(cache Cache) {
21 cache.Get(key)

Callers 2

BenchmarkTestSetFunction · 0.85
BenchmarkTestGetFunction · 0.85

Calls 1

SetMethod · 0.65

Tested by

no test coverage detected