UNPKG

@nhan2804/nestjs-cacheable

Version:

@nestjs/cacheable is a flexible caching library for NestJS that leverages Redis for efficient and scalable storage. With support for function-level caching through easy-to-use decorators, it allows developers to seamlessly enhance performance while mainta

12 lines (11 loc) 314 B
type CacheKeyFn = (args: any[]) => string; interface CacheOptions { ttl?: number; refreshThreshold?: number; key?: string | CacheKeyFn; prefix?: string; type?: "bust" | "delete"; concatArgs?: boolean; } export declare function Cacheable(options?: CacheOptions): MethodDecorator; export {};