/** Redis caching for cross-pod SSR module sharing */ /** Register a write started without an owner awaiting it. */ export declare function trackBackgroundWrite(write: Promise): void; /** * Wait for every tracked background write to settle. * * Loops because a settling write can register another one; the set is empty * only when nothing is left in flight. */ export declare function drainBackgroundWrites(): Promise; /** Initialize distributed caching for SSR modules */ export declare function initializeSSRDistributedCache(): Promise; /** * Report whether initialization actually resolved a distributed backend. * Stays false when the process runs on the in-memory backend, where * `initializeSSRDistributedCache` is never called. */ export declare function isSSRDistributedCacheEnabled(): boolean; /** * Get code from distributed cache with automatic detokenization. * The TokenizingCacheGateway handles replacing __VF_CACHE_DIR__ tokens with local paths. */ export declare function getFromRedis(cacheKey: string): Promise; /** * Store transformed code in distributed cache with automatic tokenization. * The TokenizingCacheGateway handles replacing absolute file:// paths with __VF_CACHE_DIR__ tokens. */ export declare function setInRedis(cacheKey: string, code: string, options?: { isProduction?: boolean; ttlSeconds?: number; }): Promise; //# sourceMappingURL=redis.d.ts.map