UNPKG

@sitecore/sc-contenthub-webclient-sdk

Version:

Sitecore Content Hub WebClient SDK.

22 lines 717 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.CultureCache = void 0; const guard_1 = __importDefault(require("../guard")); class CultureCache { constructor() { this._map = new Map(); this._cacheKey = "cultures"; } loadCache(cultures) { guard_1.default.notNullOrUndefined(cultures); this._map.set(this._cacheKey, cultures); } getCachedCultures() { return this._map.get(this._cacheKey) || null; } } exports.CultureCache = CultureCache; //# sourceMappingURL=culture-cache.js.map