@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
8 lines (7 loc) • 389 B
TypeScript
import { Cache } from "cache-manager";
import { CacheableConfiguration } from "./cacheable.interfaces";
export declare let cache: Cache;
export declare let cacheConfigOption: CacheableConfiguration;
export declare const setCacheManager: (c: Cache) => void;
export declare const getCacheManager: () => Cache;
export declare const setCacheConfiguration: (c: CacheableConfiguration) => void;