(id uint16, addr net.IP)
| 99 | } |
| 100 | |
| 101 | func (m MemCache) retrieve(id uint16, addr net.IP) (TemplateRecord, bool) { |
| 102 | shard, key := m.getShard(id, addr) |
| 103 | shard.RLock() |
| 104 | defer shard.RUnlock() |
| 105 | v, ok := shard.Templates[key] |
| 106 | |
| 107 | return v.Template, ok |
| 108 | } |
| 109 | |
| 110 | // Fill a slice with all known set ids. This is inefficient and is only used for error reporting or debugging. |
| 111 | func (m MemCache) allSetIds() []int { |