UNPKG
nest-api-cache
Version:
latest (0.1.0)
0.1.0
0.0.9
0.0.8
0.0.7
0.0.6
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1
使用redis实现nestjs接口层面的缓存
github.com/kuangshp/nest-api-cache
nest-api-cache
/
dist
/
decorators
/
nest.cache.api.d.ts
10 lines
(9 loc)
•
302 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
10
/** *
@Author
: 水痕 *
@Date
: 2021-03-09 17:05:19 *
@LastEditors
: 水痕 *
@Description
: 自定义装饰器,用于路由上装饰需要缓存的接口 *
@param
{
number
} exSecond redis缓存过期时间,时间为妙 *
@return
{
*
} */
export
declare
function
NestCacheApi
(
exSecond
?:
number
):
any
;