import { Module } from '@nestjs/common';
// import { ClientsModule, Transport } from '@nestjs/microservices';
import { RedisService } from './redis.service';
import { RedisModule as CacheModule } from 'nestjs-redis';

const options = {
  port: 6379,
  host: '192.168.0.47', // 远程调试需要设置bindip 为0.0.0.0 并且设置密码
  password: '', // 非远程不需要密码
  decode_responses: true,
  db: 9,
};
@Module({
  imports: [CacheModule.register(options)],
  providers: [RedisService],
  exports: [RedisService],
})
export class RedisModule {}
