MCPcopy
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

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

Callers 3

TestCacheFunction · 0.95
HandlerMethod · 0.65
SetMethod · 0.65

Implementers 2

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

Calls

no outgoing calls

Tested by 1

TestCacheFunction · 0.76