@songkeys/nestjs-redis
Version:
Redis(ioredis) module for Nest framework (node.js).
20 lines (19 loc) • 691 B
TypeScript
import { DynamicModule, OnApplicationShutdown } from '@nestjs/common';
import { ModuleRef } from '@nestjs/core';
import { ClusterModuleOptions, ClusterModuleAsyncOptions } from './interfaces';
/**
* @public
*/
export declare class ClusterModule implements OnApplicationShutdown {
private moduleRef;
constructor(moduleRef: ModuleRef);
/**
* Registers the module synchronously.
*/
static forRoot(options: ClusterModuleOptions, isGlobal?: boolean): DynamicModule;
/**
* Registers the module asynchronously.
*/
static forRootAsync(options: ClusterModuleAsyncOptions, isGlobal?: boolean): DynamicModule;
onApplicationShutdown(): Promise<void>;
}