(
options: CacheKeyOptions & { localeId: string; contexts: Array<string> }
)
| 15 | |
| 16 | /** Will dedupe and sort contexts to get a unique key */ |
| 17 | export const localeWithStringsCacheKey = ( |
| 18 | options: CacheKeyOptions & { localeId: string; contexts: Array<string> } |
| 19 | ) => |
| 20 | `${getAppName(options)}_localeWithStrings_${options.localeId}_${[ |
| 21 | ...new Set(options.contexts).values() |
| 22 | ] |
| 23 | .sort() |
| 24 | .join(',')}` |
| 25 | |
| 26 | export const editionMetadataCacheKey = ( |
| 27 | options: CacheKeyOptions & { |
no test coverage detected