/** * Options for key generation */ export interface KeyGeneratorOptions { /** * Prefix to add to the key */ prefix?: string; /** * Namespace for the key (used for grouping related keys) */ namespace?: string; /** * Whether to include the type in the key */ includeType?: boolean; /** * Hash algorithm to use (default: md5) */ hashAlgorithm?: 'md5' | 'sha1' | 'sha256'; /** * Maximum key length */ maxLength?: number; /** * Whether to hash the key */ hash?: boolean; } /** * Generate a cache key * @param key Key or object to generate key from * @param options Key generation options * @returns Generated cache key */ export declare function generateKey(key: string | object, options?: KeyGeneratorOptions): string; /** * Generate a pattern key for pattern matching * @param pattern Pattern to match * @returns Pattern key */ export declare function generatePatternKey(pattern: string): string; /** * Check if a key matches a pattern * @param key Key to check * @param pattern Pattern to match against * @returns True if the key matches the pattern */ export declare function keyMatchesPattern(key: string, pattern: string): boolean; //# sourceMappingURL=key-generator.d.ts.map