import { CacheProvider } from '../../interfaces/cache-provider'; import { TieredCacheOptions } from '../../interfaces/cache-options'; /** * Handles read operations for tiered cache */ export declare class TieredCacheReadStrategy { private providers; private options; private logger; /** * Creates a new TieredCacheReadStrategy * @param providers Array of cache providers * @param options Cache options * @param logger Logger instance */ constructor(providers: Array<{ provider: CacheProvider; options: { writeOnHitFromLowerTier: boolean; ttl?: number; }; }>, options: TieredCacheOptions, logger: any); /** * Get a value from the cache * @param key Cache key * @returns Promise resolving to the cached value or undefined if not found */ get(key: string): Promise; /** * Populate higher tiers with a value found in a lower tier * @param key Cache key * @param value Value to cache * @param foundInTier Tier index where the value was found */ private populateHigherTiers; /** * Check if a key exists in the cache * @param key Cache key * @returns Promise resolving to true if the key exists */ has(key: string): Promise; /** * Get multiple values from the cache * @param keys Array of cache keys * @returns Promise resolving to a map of key-value pairs for found items */ getMany(keys: string[]): Promise>; /** * Populate higher tiers with multiple values found in a lower tier * @param entries Map of key-value pairs to cache * @param foundInTier Tier index where the values were found */ private populateHigherTiersMany; /** * Get the Time-To-Live (TTL) for a cache key * @param key Cache key * @returns Promise resolving to TTL in milliseconds, or undefined if not found */ getTtl(key: string): Promise; } //# sourceMappingURL=read-strategy.d.ts.map