nestjs-api-tools
Version:
Wrappers for convenient API development including validation, logging and i18n wrappers
13 lines (12 loc) • 340 B
TypeScript
export interface CacheServiceOptions {
ttl: number;
useClones: boolean;
}
export declare class CacheService {
private readonly options;
private readonly cache;
constructor(options: CacheServiceOptions);
has(key: string): boolean;
get(key: string): any;
set(key: string, value: any, ttl?: number): boolean;
}