/** Redis key builders for the pulse heartbeat cache. */

/** Full pulse response cached per (userId, brandId). TTL: 60s. */
export function pulseResponseKey(userId: string, brandId: string): string {
  return `pulse:v1:${userId}:${brandId}`;
}

/**
 * lastEventAt ISO string, updated fire-and-forget by the event write
 * path on every incoming event. TTL: 24h.
 */
export function pulseLastEventKey(brandId: string): string {
  return `pulse:last:${brandId}`;
}
