Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/rodrigo-brito/gocity
/ Set
Method
Set
lib/cache.go:11–11 ·
view source on GitHub ↗
(key string, value []byte, TTL time.Duration)
Source
from the content-addressed store, hash-verified
9
type
Cache
interface
{
10
Get(key string) (bool, []byte)
11
Set(key string, value []byte, TTL time.Duration)
12
GetSet(key string, set
func
() ([]byte, error), TTL time.Duration) ([]byte, error)
13
}
14
Callers
3
TestCache
Function · 0.95
Handler
Method · 0.65
Set
Method · 0.65
Implementers
2
Cache
testdata/mocks/Cache.go
cache
lib/cache.go
Calls
no outgoing calls
Tested by
1
TestCache
Function · 0.76