MCPcopy
hub / github.com/micro/go-micro / set

Method set

registry/cache/cache.go:276–279  ·  view source on GitHub ↗
(service string, services []*registry.Service)

Source from the content-addressed store, hash-verified

274}
275
276func (c *cache) set(service string, services []*registry.Service) {
277 c.cache[service] = services
278 c.ttls[service] = time.Now().Add(c.opts.TTL)
279}
280
281func (c *cache) updateNodeTTLs(name string, nodes []*registry.Node) {
282 if c.nttls[name] == nil {

Callers 2

getMethod · 0.95
updateMethod · 0.95

Calls 1

AddMethod · 0.65

Tested by

no test coverage detected