nestjs-redis:基于ioredis包的Redis模块

时间:2021-02-17 04:01:26
【文件属性】:
文件名称:nestjs-redis:基于ioredis包的Redis模块
文件大小:74KB
文件格式:ZIP
更新时间:2021-02-17 04:01:26
TypeScript NestJS Redis 模块,该模块支持群集,哨兵模式。 快速开始 安装 $ npm i --save @pokeguys/nestjs-redis ioredis # or $ yarn add @pokeguys/nestjs-redis ioredis 用法 // app.module.ts @ Module ( { imports : [ RedisModule . forRoot ( { uri : 'redis://localhost:6379/' } ) , ] , } ) export class AppModule { } // app.service.ts @ Injectable ( ) export class AppService { constructor ( @ InjectRedis ( ) private readonly redi
【文件预览】:
nestjs-redis-master
----.lintstagedrc(43B)
----index.js(167B)
----renovate.json(138B)
----docs()
--------setup.md(3KB)
----package.json(2KB)
----.github()
--------workflows()
----.prettierrc(180B)
----.prettierignore(37B)
----tests()
--------jest-e2e.json(179B)
--------src()
--------e2e()
----LICENSE(1KB)
----package-lock.json(428KB)
----.npmignore(253B)
----.eslintrc.js(816B)
----.huskyrc(127B)
----tsconfig.json(336B)
----index.d.ts(24B)
----.gitignore(147B)
----.release-it.json(110B)
----.commitlintrc.json(466B)
----lib()
--------redis.module.ts(575B)
--------common()
--------redis-core.module.ts(3KB)
--------interfaces()
--------redis.constants.ts(118B)
--------index.ts(104B)
--------redis.module.spec.ts(7KB)
----README.md(709B)
----.eslintignore(26B)
----.editorconfig(147B)
----index.ts(24B)
----tsconfig.build.json(200B)

网友评论