/** * Redis OM Pattern Scanner * Finds and manages all keys created by Redis OM for a schema */ import { RedisClientType } from 'redis'; export interface ScanResult { patterns: Map; totalKeys: number; breakdown: Record; } export interface DeleteResult { deleted: number; patterns: string[]; errors: string[]; } export interface KeyStats { total: number; byType: Record; memoryUsage?: number; } export declare class RedisOMPatternScanner { private entityName; private client; private readonly REDIS_OM_PATTERNS; constructor(entityName: string, client: RedisClientType); /** * Get all patterns for this entity */ private getPatterns; /** * Get keys matching a pattern from registry */ private scanPattern; /** * Find all keys for this schema */ findAllSchemaKeys(): Promise; /** * Delete all keys for this schema */ deleteAllSchemaKeys(): Promise; /** * Get statistics about keys */ getKeyStats(): Promise; /** * Find orphaned keys (keys that don't match expected patterns) */ findOrphanedKeys(): Promise; /** * Clean up orphaned keys */ cleanupOrphans(): Promise; } /** * Utility to monitor all schemas */ export declare function monitorAllSchemas(schemas: string[], client: RedisClientType): Promise>; /** * Clean up all schemas */ export declare function cleanupAllSchemas(schemas: string[], client: RedisClientType): Promise>; //# sourceMappingURL=redis-om-scanner.d.ts.map