UNPKG

@venix/cachified

Version:

A plug and play NestJS redis cache for intensive functions.

14 lines (13 loc) 545 B
import { DiscoveryService } from "@golevelup/nestjs-discovery"; import { CachifiedConfiguration } from "../types"; export declare class CachifiedService { private readonly options; private readonly discoveryService; private redisClient; constructor(options: CachifiedConfiguration, discoveryService: DiscoveryService); private onModuleInit; private getRawVal; private setRawValWithExpiry; invalidate(name: string, ...args: any[]): Promise<number>; invalidateAll(name: string): Promise<number>; }