//#region libs/shared/common/src/data-structures/ValueCache/ValueCache.ts
var e = class {
	constructor(e) {
		this.timeoutInMs = e, this.setTimer();
	}
	timeoutInMs;
	values = {};
	setTimer() {
		if (this.timeoutInMs > 0) {
			let e = this;
			setInterval(() => {
				e.onTimeout();
			}, this.timeoutInMs);
		}
	}
	onTimeout() {
		this.clear();
	}
	clear() {
		this.values = {};
	}
};
//#endregion
export { e as ValueCache };
