MCPcopy
hub / github.com/rodrigo-brito/gocity / Cache

Interface Cache

lib/cache.go:9–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7)
8
9type 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
15func NewCache() Cache {
16 return &cache{

Callers 13

TestCacheFunction · 0.95
FetchMethod · 0.65
AnalyzeMethod · 0.65
FetchPackageMethod · 0.65
DeleteMethod · 0.65
GetMethod · 0.65
SaveMethod · 0.65
GetMethod · 0.65
TestCacheFunction · 0.95
HandlerMethod · 0.65
SetMethod · 0.65
TestCacheFunction · 0.95

Implementers 2

Cachetestdata/mocks/Cache.go
cachelib/cache.go

Calls

no outgoing calls

Tested by

no test coverage detected