πRedis
This service is used to interact with the Redis database.
Imports
import { RedisService } from 'niro-health';import { RedisModule } from 'niro-health';import type { IRedisService } from 'niro-health';Environment Variables
name
description
REDIS_HOST=redis://localhost:6379
REDIS_PORT=6379
REDIS_PASSWORD=Method of Use
import { Module } from '@nestjs/common';
import {
AppHostService,
PrismaService,
ConfigurationService,
ValidatorRegexpService,
StringExService,
DebugService,
} from 'niro-health';
import { AppController } from './app.controller';
import { AppService } from './app.service';
@Module({
controllers: [AppController],
providers: [
AppService,
{
provide: 'IAppHostService',
useClass: AppHostService,
},
{
provide: 'IPrismaService',
useClass: PrismaService,
},
{
provide: 'IConfigurationService',
useClass: ConfigurationService,
},
{
provide: 'IValidatorRegexpService',
useClass: ValidatorRegexpService,
},
{
provide: 'IStringExService',
useClass: StringExService,
},
{
provide: 'IDebugService',
useClass: DebugService,
},
],
})
export class AppModule {}With dependencies
Interface
Service
Properties
Property
Scope
Description
Methods
Method
Scope
Description
Last updated