/**
 * Core constants used across the stock-bot application
 */

// Cache constants
export const CACHE_DEFAULTS = {
  TTL: 3600, // 1 hour in seconds
  KEY_PREFIX: 'cache:',
  SCAN_COUNT: 100,
} as const;

// Redis connection constants
export const REDIS_DEFAULTS = {
  DB: 0,
  MAX_RETRIES: 3,
  RETRY_DELAY: 100,
  CONNECT_TIMEOUT: 10000,
  COMMAND_TIMEOUT: 5000,
  KEEP_ALIVE: 0,
} as const;

// Shutdown constants
export const SHUTDOWN_DEFAULTS = {
  TIMEOUT: 30000, // 30 seconds
  HIGH_PRIORITY: 10,
  MEDIUM_PRIORITY: 50,
  LOW_PRIORITY: 90,
} as const;

// Pool size constants
export const POOL_SIZE_DEFAULTS = {
  MIN_POOL_SIZE: 2,
  MAX_POOL_SIZE: 10,
  CPU_MULTIPLIER: 2,
} as const;
