@sitecore/sc-contenthub-webclient-sdk
Version:
Sitecore Content Hub WebClient SDK.
15 lines • 406 B
JavaScript
import Guard from "../guard";
export class CultureCache {
constructor() {
this._map = new Map();
this._cacheKey = "cultures";
}
loadCache(cultures) {
Guard.notNullOrUndefined(cultures);
this._map.set(this._cacheKey, cultures);
}
getCachedCultures() {
return this._map.get(this._cacheKey) || null;
}
}
//# sourceMappingURL=culture-cache.js.map