constructor()

in lib/data_access/cache.ts [15:30]


	constructor(settings?:DataCacheSettings<T>){
		if (settings) {
			DataCache.validateSettings<T>(settings);

			this.time = settings.time || null; // milliseconds
			this.obj = settings.max;
			this.getter = settings.getter;
		}

		this._keys = [];
		this._values = new Map<string, T>();
		this._timeouts = {};
		this._getObservable = {};

		Object.seal(this);
	}