All Projects → liaoliaots → nestjs-redis

liaoliaots / nestjs-redis

Licence: MIT License
Redis(ioredis) module for NestJS framework

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to nestjs-redis

nestjs-ioredis
IORedis module for Nest
Stars: ✭ 21 (-81.25%)
Mutual labels:  nest, ioredis, nestjs
nest-rest-mongo-boilerplate
🍱 backend with nest (typescript), mongoose, and authentication
Stars: ✭ 180 (+60.71%)
Mutual labels:  nest, nestjs
serverless-core-deprecated
[Deprecated] Serverless Core module for Nest framework (node.js) 🦊
Stars: ✭ 169 (+50.89%)
Mutual labels:  nest, nestjs
aws-nestjs-starter
Serverless, AWS, NestJS, GraphQL and DynamoDB starter
Stars: ✭ 200 (+78.57%)
Mutual labels:  nest, nestjs
kirby3-doctor
Plugin to check health of your CMS installation
Stars: ✭ 19 (-83.04%)
Mutual labels:  health, check
react-health-check
Lightweight React hook for checking health of API services.
Stars: ✭ 28 (-75%)
Mutual labels:  health, check
ng-nest-cnode
Angular 10 Front-End and Nestjs 7 framework Back-End build Fullstack CNode
Stars: ✭ 17 (-84.82%)
Mutual labels:  ioredis, nestjs
nestjs-extensions
[WIP] A bunch of useful and opinionated filters, modules, pipes... to use with Nest framework. 😻
Stars: ✭ 43 (-61.61%)
Mutual labels:  nest, nestjs
Firstsight
前后端分离,服务端渲染的个人博客,基于 Nodejs、 Vue、 Nuxt、Nestjs、PostgreSQL、Apollo
Stars: ✭ 19 (-83.04%)
Mutual labels:  nest, nestjs
necord
🤖 A module for creating Discord bots using NestJS, based on Discord.js
Stars: ✭ 77 (-31.25%)
Mutual labels:  nest, nestjs
axios
Axios module for Nest framework (node.js) 🗂
Stars: ✭ 95 (-15.18%)
Mutual labels:  nest, nestjs
nestjs-otel
OpenTelemetry (Tracing + Metrics) module for Nest framework (node.js) 🔭
Stars: ✭ 273 (+143.75%)
Mutual labels:  nest, nestjs
nestjs-dynamoose
Dynamoose module for Nest
Stars: ✭ 84 (-25%)
Mutual labels:  nest, nestjs
nestjs-rest-cqrs-example
Example for Nest.js, MySQL, Redis, REST api, CQRS, DDD
Stars: ✭ 263 (+134.82%)
Mutual labels:  nest, nestjs
azure-func-http
Azure Functions HTTP adapter for Nest framework (node.js) 🌥
Stars: ✭ 121 (+8.04%)
Mutual labels:  nest, nestjs
event-emitter
Event Emitter module for Nest framework (node.js) 🦋
Stars: ✭ 102 (-8.93%)
Mutual labels:  nest, nestjs
server-next
😎 The next generation of RESTful API service and more for Mix Space, powered by @nestjs.
Stars: ✭ 43 (-61.61%)
Mutual labels:  nest, nestjs
nest-xray
Distributed tracing for Nestjs with AWS X-Ray as the backend. Instrument incoming and outgoing HTTP requests
Stars: ✭ 50 (-55.36%)
Mutual labels:  nest, nestjs
unnue-nuxt
开媛笔记,基于nuxt ssr首屏服务器端渲染 ⚡。用于分享、记录、交流和学习,希望可以帮助到小伙伴们。同时网站在永久更新,备好鸡血,一起来战 Ooh aah!
Stars: ✭ 98 (-12.5%)
Mutual labels:  nest, nestjs
azure-storage
Azure Storage module for Nest framework (node.js) ☁️
Stars: ✭ 71 (-36.61%)
Mutual labels:  nest, nestjs

Nest Logo

Redis(ioredis) module for NestJS framework.

NPM Version Package License NPM Downloads Package Vulnerabilities

Features 🚀

  • Both redis & cluster are supported: You can also specify multiple clients.
  • Health: Checks health of redis & cluster server.
  • Rigorously tested: With 130+ tests and 100% code coverage.
  • Decorators: Injects redis/cluster client via @InjectRedis() and @InjectCluster().
  • Services: Retrieves redis/cluster client via RedisService and ClusterService.

Test coverage 🧐

Statements Branches Functions Lines
Statements Branches Functions Lines

Documentation

Deprecated

Install

This lib requires Node.js >=12.22.0, ioredis ^5.0.0, NestJS 7.x or 8.x.

# with npm
npm install --save @liaoliaots/nestjs-redis ioredis
# with yarn
yarn add @liaoliaots/nestjs-redis ioredis

Test a class

This package exports getRedisToken() and getClusterToken() functions that return an internal injection token based on the provided context. Using this token, you can provide a mock implementation of the redis/cluster client using any of the standard custom provider techniques, including useClass, useValue, and useFactory.

const module: TestingModule = await Test.createTestingModule({
    providers: [{ provide: getRedisToken('namespace'), useValue: mockedClient }, YourService]
}).compile();

A working example is available here.

Future

    • Microservice strategy

Package dependency overview

Author

👤 LiaoLiao

🤝 Contributing

Contributions, issues and feature requests are welcome!
Feel free to check issues page.

Show your support

Give a ⭐️ if this project helped you!

📝 License

This project is MIT licensed.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].