import { BaseCacheProvider } from './base-cache.provider'; /** * CLS (Continuation Local Storage) cache provider * * This is the L1 cache layer - request-scoped caching using nestjs-cls. * Data stored here is only available within the same request context. * * Fastest cache layer but limited to single request lifecycle. */ export declare class ClsCacheProvider extends BaseCacheProvider { private static readonly CACHE_PREFIX; private static readonly KEYS_SET; private readonly logger; private clsUnavailableLogged; getName(): string; get(key: string): Promise; set(key: string, value: T, ttl?: number): Promise; delete(key: string | string[]): Promise; deletePattern(pattern: string): Promise; clear(): Promise; has(key: string): Promise; /** * Get full key with prefix */ private getFullKey; /** * Add key to tracked keys set */ private addKeyToSet; /** * Remove key from tracked keys set */ private removeKeyFromSet; /** * Get all tracked keys */ private getAllKeys; /** * Log CLS unavailability once to avoid spam * Only logs in development/test mode */ private logClsUnavailableOnce; }