πHyperc
The module provides a simple way to cache data in Redis.
Imports
import { HypercService } from 'niro-health';import { HypercModule } from 'niro-health';import type { IHypercService } from 'niro-health';Method of Use
import { Module } from '@nestjs/common';
import {
RedisService,
DebugService,
ConfigurationService,
ValidatorRegexpService,
StringExService,
} from 'niro-health';
import { AppController } from './app.controller';
import { AppService } from './app.service';
@Module({
controllers: [AppController],
providers: [
AppService,
{
provide: 'IRedisService',
useClass: RedisService,
},
{
provide: 'IDebugService',
useClass: DebugService,
},
{
provide: 'IConfigurationService',
useClass: ConfigurationService,
},
{
provide: 'IValidatorRegexpService',
useClass: ValidatorRegexpService,
},
{
provide: 'IStringExService',
useClass: StringExService,
},
],
})
export class AppModule {}With dependencies
Interface
Service
Methods
Method
Scope
Description
Last updated