/**
 * Cache tags used across the application for revalidation.
 * Centralized for consistency and easy maintenance.
 */
export const CACHE_TAGS = {
  dashboard: "dashboard",
  employees: "employees",
  attendance: "attendance",
  leaves: "leaves",
  biometric: "biometric",
} as const;

export type CacheTag = keyof typeof CACHE_TAGS;

/**
 * Default cache profile for revalidateTag.
 * Use this as the second argument to revalidateTag in Next.js 16+.
 */
export const DEFAULT_CACHE_PROFILE = {
  revalidate: 0, // Revalidate immediately when tag is invalidated
  expire: 86400, // Expire after 24 hours if not revalidated
} as const;
