import { Module, Global } from '@nestjs/common';
import { ConfigModule } from '@nestjs/config';
import { RedisService } from './redis.service';
import { WalletCacheService } from './wallet-cache.service';
import { HotWalletCacheService } from './hot-wallet-cache.service';

@Global()
@Module({
  imports: [ConfigModule],
  providers: [RedisService, WalletCacheService, HotWalletCacheService],
  exports: [RedisService, WalletCacheService, HotWalletCacheService],
})
export class RedisModule {}
