import { Global, Module } from "@nestjs/common";
import { CacheService } from "./cache.service";

/**
 * Global cache module
 * 
 * Provides Redis-backed caching infrastructure for the entire application.
 * Exports CacheService for use in domain-specific cache services.
 */
@Global()
@Module({
  providers: [CacheService],
  exports: [CacheService],
})
export class CacheModule {}

// Export shared types for domain-specific cache services
export * from "./cache.types";
