(group: string, id: number)
| 24 | * @category Constructors |
| 25 | */ |
| 26 | export const make = (group: string, id: number): ShardId => { |
| 27 | const key = `${group}:${id}` |
| 28 | let shardId = shardIdCache.get(key) |
| 29 | if (!shardId) { |
| 30 | shardId = new ShardId({ group, id }, constDisableValidation) |
| 31 | shardIdCache.set(key, shardId) |
| 32 | } |
| 33 | return shardId |
| 34 | } |
| 35 | |
| 36 | const shardIdCache = new Map<string, ShardId>() |
| 37 |
no test coverage detected