(key cache.TargetKey)
| 52 | } |
| 53 | |
| 54 | func (ln *target) getID(key cache.TargetKey) (int, bool) { |
| 55 | if item, ok := ln.keyToID.Load(key); ok { |
| 56 | return item.(int), true |
| 57 | } |
| 58 | return 0, false |
| 59 | } |
| 60 | |
| 61 | func (ln *target) refresh(args ...interface{}) error { |
| 62 | ln.lock.Lock() |