// Zentrale Cache-Key Definitionen
export const CacheKeys = {
  // Pages
  page: (slug: string, locale: string) => `page:${locale}:${slug}`,
  pages: (tenant: string, locale: string) => `pages:${tenant}:${locale}`,
  
  // Posts
  post: (slug: string, locale: string) => `post:${locale}:${slug}`,
  posts: (tenant: string, locale: string) => `posts:${tenant}:${locale}`,
  postsList: (tenant: string, locale: string, page: number) => 
    `posts:${tenant}:${locale}:list:${page}`,
  
  // Navigation
  navigation: (tenant: string, locale: string) => `nav:${tenant}:${locale}`,
  
  // Categories
  categories: (tenant: string, locale: string) => `categories:${tenant}:${locale}`,
  
  // Global Settings
  globals: (tenant: string, slug: string) => `global:${tenant}:${slug}`,
  
  // Tenant-spezifisch
  tenant: (slug: string) => `tenant:${slug}`,
}

// TTL Werte (in Sekunden)
export const CacheTTL = {
  SHORT: 60,           // 1 Minute
  DEFAULT: 300,        // 5 Minuten
  MEDIUM: 900,         // 15 Minuten
  LONG: 3600,          // 1 Stunde
  VERY_LONG: 86400,    // 24 Stunden
}
