import { t as CacheAdapter } from "../cache.adapter-z0MMDFoK.js"; //#region src/adapters/upstash.adapter.d.ts /** * Options for the Upstash cache adapter */ interface UpstashCacheAdapterOptions { /** * Upstash Redis REST URL (e.g., 'https://xxx.upstash.io') */ url: string; /** * Upstash Redis REST token */ token: string; /** * Custom fetch implementation (defaults to global fetch) * * Useful for runtimes without global fetch or for testing. */ fetch?: typeof fetch; } /** * Create a cache adapter backed by Upstash Redis via its REST API * * Uses plain `fetch` against the Upstash REST endpoint, so it is edge-safe * (Cloudflare Workers, Deno, Bun, Node 18+) and requires no npm dependency. * * @example * ```ts * const cache = upstashCacheAdapter({ * url: process.env.UPSTASH_REDIS_REST_URL!, * token: process.env.UPSTASH_REDIS_REST_TOKEN!, * }); * ``` */ declare function upstashCacheAdapter(options: UpstashCacheAdapterOptions): CacheAdapter; //#endregion export { UpstashCacheAdapterOptions, upstashCacheAdapter }; //# sourceMappingURL=upstash.adapter.d.ts.map