Socket
Book a DemoInstallSign in
Socket

herowio-redisk-nestjs

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

herowio-redisk-nestjs

NestJS module for Redisk.

3.0.0
latest
Source
npmnpm
Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

Redisk for Nestjs

npm version

Module for using Redisk in NestJS.

Getting started

npm install redisk-nestjs redisk --save

Usage

import { Module } from '@nestjs/common';
import { RediskModule } from 'redisk-nestjs';

@Module({
  imports: [
    RediskModule.forRoot({
      host: '127.0.0.1',
      port:6379, 
      db:0
    }),
  ],
})
export class AppModule {}

Example

import { Controller, Get } from '@nestjs/common';
import { Redisk } from 'redisk';

@Controller('cats')
export class CatsController {
  constructor(private readonly redisk: Redisk) {}

  @Get()
  async findAll(): Promise<Cat[]> {
    return this.redisk.list<Cat>(Cat);
  }
}

Keywords

nestjs

FAQs

Package last updated on 28 Jan 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.