/** * ObjectCacheEntry is used for the array within the ObjectCache class */ export declare class ObjectCacheEntry { key: string; object: T; constructor(key: string, object: T); } /** * ObjectCache can be used to cache objects as needed by any application in memory. These objects are NOT persisted to disk or any other storage medium, so they are only good for the lifetime of the application. * Do not attempt to directly instantiate this class, instead use the static Instance property of the MJGlobal class to get the instance of the ObjectCache for your application within that instance of MJGlobal. */ export declare class ObjectCache { private _entries; /** * Remove all entries from the object cache */ Clear(): void; /** * Add a new object to the cache. If the key already exists, an exception is thrown * @param key * @param object */ Add(key: string, object: T): void; /** * Replace an existing object in the cache with a new one. If the key does not exist, the new object is added * @param key * @param object */ Replace(key: string, object: T): void; /** * Remove an object from the cache based on the key * @param key */ Remove(key: string): void; /** * Returns an object from the cache based on the key and only if it matches the type provided in the generic * @param key * @returns */ Find(key: string): T | null; } //# sourceMappingURL=ObjectCache.d.ts.map