(service string, services []*registry.Service)
| 274 | } |
| 275 | |
| 276 | func (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 | |
| 281 | func (c *cache) updateNodeTTLs(name string, nodes []*registry.Node) { |
| 282 | if c.nttls[name] == nil { |