(remoteName string, remoteAlloc *Allocator)
| 1092 | } |
| 1093 | |
| 1094 | func (a *Allocator) NewRemoteCache(remoteName string, remoteAlloc *Allocator) RemoteIDCache { |
| 1095 | return &remoteCache{ |
| 1096 | name: remoteName, |
| 1097 | allocator: remoteAlloc, |
| 1098 | cache: &remoteAlloc.mainCache, |
| 1099 | |
| 1100 | watchFunc: a.watchRemoteKVStore, |
| 1101 | } |
| 1102 | } |
| 1103 | |
| 1104 | // watchRemoteKVStore starts watching an allocator base prefix the kvstore |
| 1105 | // represents by the provided backend. A local cache of all identities of that |
no outgoing calls