Skip to content

Free & Open-Source Invoice Generator - No Sign-Up, No Ads, Instant PDF Export, 100% In-Browser, and Fully Customizable Templates.

372 B
Raw Blame
import { Redis } from "@upstash/redis";

import { env } from "@/env";

/**
 * Redis client instance for Upstash Redis.
 * Provides async key-value storage for queue management and caching.
 * Configured with REST API credentials from environment variables.
 */
export const redis = new Redis({
  url: env.UPSTASH_REDIS_REST_URL,
  token: env.UPSTASH_REDIS_REST_TOKEN,
});