MCPcopy Create free account
hub / github.com/Devographics/Monorepo / localeWithStringsCacheKey

Function localeWithStringsCacheKey

shared/fetch/cache_keys.ts:17–24  ·  view source on GitHub ↗
(
    options: CacheKeyOptions & { localeId: string; contexts: Array<string> }
)

Source from the content-addressed store, hash-verified

15
16/** Will dedupe and sort contexts to get a unique key */
17export 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
26export const editionMetadataCacheKey = (
27 options: CacheKeyOptions & {

Callers 2

refreshLocalesCacheFunction · 0.90
getLocaleDictFunction · 0.90

Calls 1

getAppNameFunction · 0.70

Tested by

no test coverage detected