import { Module, Global } from '@nestjs/common';
import { RedisSessionService } from './redis-session.service';
import { RedisPublisherService } from './redis-publisher.service';

/**
 * Global Redis module for session state and pub/sub.
 * Provides RedisSessionService and RedisPublisherService across all modules.
 */
@Global()
@Module({
  providers: [RedisSessionService, RedisPublisherService],
  exports: [RedisSessionService, RedisPublisherService],
})
export class RedisModule {}
