import { Cache } from '@nestjs/cache-manager'; import { CacheServicePort } from '../../domain/ports'; /** * Generic cache service implementation using NestJS CacheManager. * Supports basic operations like get, set, delete, and clear. */ export declare class CacheService implements CacheServicePort { private readonly cache; private readonly logger; constructor(cache: Cache); /** * Retrieves a value from the cache by key. * * @param key The key to retrieve the value for. * @returns The parsed value, or null if not found. */ get(key: string): Promise; /** * Stores a value in the cache under the specified key. * * @param key The key under which to store the value. * @param value The value to store. * @param ttl Optional time to live (expiration) in seconds. */ set(key: string, value: T, ttl?: number): Promise; /** * Deletes a value from the cache by key. * * @param key The key of the value to delete. */ del(key: string): Promise; /** * Clears the entire cache. */ reset(): Promise; } //# sourceMappingURL=cache.service.d.ts.map