@zvenigora/ng-eval-core
Version:
An expression evaluator for Angular
22 lines (21 loc) • 718 B
TypeScript
/**
* Property Lookup Cache
*
* Provides efficient caching for case-insensitive property lookups
* to avoid repeated O(n) searches through object property lists.
*/
/**
* Performs optimized case-insensitive property lookup with caching
*/
export declare function getCachedCaseInsensitiveProperty(obj: Record<PropertyKey, unknown>, searchKey: string, equalIgnoreCase: (a: string, b: string) => boolean): string | null;
/**
* Clears the property lookup cache (for testing or memory management)
*/
export declare function clearPropertyLookupCache(): void;
/**
* Gets current property lookup cache statistics
*/
export declare function getPropertyLookupCacheStats(): {
size: number;
maxSize: number;
};