/** * CesiumPlus cache module * In-memory cache with optional TTL support */ /** * Generic cache class with TTL support */ export declare class Cache { private cache; private ttl; /** * Create a new cache * @param ttl - Time to live in milliseconds (0 = no expiration) */ constructor(ttl?: number); /** * Check if a key exists and is not expired */ has(key: string): boolean; /** * Get a value from cache * Returns undefined if not found or expired */ get(key: string): T | undefined; /** * Set a value in cache */ set(key: string, value: T): void; /** * Delete a key from cache */ delete(key: string): boolean; /** * Clear all cached entries */ clear(): void; /** * Get cache size */ get size(): number; /** * Check if an entry is expired */ private isExpired; /** * Clean up expired entries */ cleanup(): void; } /** * Profile cache manager * Manages separate caches for profiles and avatars */ export declare class ProfileCacheManager { private profileCache; private avatarCache; constructor(ttl?: number); /** * Get profile cache */ get profiles(): Cache; /** * Get avatar cache */ get avatars(): Cache; /** * Clear all caches */ clearAll(): void; /** * Clear cache for a specific pubkey/address */ clearFor(pubkey: string, address?: string): void; /** * Clean up expired entries in all caches */ cleanup(): void; }