Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
15
func
DoSet(cache Cache) {
16
expire := 60
// expire in 60 seconds
17
cache.Set(key, val, int64(expire))
18
}
19
20
func
DoGet(cache Cache) {
21
cache.Get(key)
Callers
2
BenchmarkTestSet
Function · 0.85
BenchmarkTestGet
Function · 0.85
Calls
1
Set
Method · 0.65
Tested by
no test coverage detected