(...args: Args)
| 56 | const memCache = new Map<string, MemCacheEntry<T>>(); |
| 57 | |
| 58 | const buildKey = (...args: Args) => |
| 59 | [id, ...args.map((a) => JSON.stringify(a))].join('|'); |
| 60 | |
| 61 | const get = async (...args: Args): Promise<T> => { |
| 62 | const key = buildKey(...args); |