UNPKG

nest-api-cache

Version:

使用redis实现nestjs接口层面的缓存

10 lines (9 loc) 302 B
/** * @Author: 水痕 * @Date: 2021-03-09 17:05:19 * @LastEditors: 水痕 * @Description: 自定义装饰器,用于路由上装饰需要缓存的接口 * @param {number} exSecond redis缓存过期时间,时间为妙 * @return {*} */ export declare function NestCacheApi(exSecond?: number): any;