import { Module, Global } from "@nestjs/common";
import { ValkeyService } from "./valkey.service";

/**
 * ValkeyModule - Redis-compatible task queue module
 *
 * This module provides task queue functionality using Valkey (Redis-compatible).
 * It is marked as @Global to allow injection across the application without
 * explicit imports.
 */
@Global()
@Module({
  providers: [ValkeyService],
  exports: [ValkeyService],
})
export class ValkeyModule {}
