(items: [DataPrefix, string, string][])
| 18 | } |
| 19 | |
| 20 | async mhgetCoalesceAsync(items: [DataPrefix, string, string][]) { |
| 21 | internals.realtime.markAsDependencies( |
| 22 | items.map((item) => getFullKey(...item)), |
| 23 | ); |
| 24 | |
| 25 | for (const item of items) { |
| 26 | const value = await this.hgetAsync(item[0] as any, item[1], item[2]); |
| 27 | |
| 28 | if (value != null) { |
| 29 | return value; |
| 30 | } |
| 31 | } |
| 32 | } |
| 33 | async mhgetAsync(items: [DataPrefix, string, string][]) { |
| 34 | return await Promise.all( |
| 35 | items.map(([prefix, suffix, field]) => |
no test coverage detected