/** * Manages lock caching for performance optimization. */ import { LockCacheOptions, CachedLockInfo } from "../core/types"; export declare class CacheManager { private readonly lockCache; private cacheEnabled; private cacheOptions; /** * Enable lock caching */ enable(options?: LockCacheOptions): void; /** * Disable lock caching */ disable(): void; /** * Cache a lock for performance */ set(identifier: string, resources: string[], ttl: number): void; /** * Check cache for lock status */ get(resources: string[]): CachedLockInfo | null; /** * Invalidate the cache entry for a resource set. Must be called whenever * the lock is released, otherwise a stale 'acquired' entry survives until * its TTL and misreports the lock as held. */ invalidate(resources: string[]): void; /** * Evict cache entries based on strategy */ private evict; /** * Get cache statistics */ getStats(): { size: number; hitRate: number; evictions: number; }; } //# sourceMappingURL=cache.d.ts.map