diff --git a/llms-full.txt b/llms-full.txt index 735dc70b..b6bd5d77 100644 --- a/llms-full.txt +++ b/llms-full.txt @@ -10142,7 +10142,7 @@ To view a more detailed Next.js quick start guide for setting up QStash, refer t It's also possible to schedule a background job to run at a later time using [schedules](/docs/qstash/features/schedules). -If you'd like to invoke another endpoint when the background job is complete, you can use [callbacks](/docs/qstash/features/callbacks). +If you'd like to invoke another endpoint when the background job is complete, you can use [callbacks](/docs/qstash/features/callbacks). # Batching Source: https://upstash.com/docs/qstash/features/batch @@ -10441,7 +10441,7 @@ client.message.batch_json( "messageId": "msg_..." } ] -``` +``` # Callbacks Source: https://upstash.com/docs/qstash/features/callbacks @@ -11496,7 +11496,7 @@ from qstash import QStash client = QStash("") client.queue.get("my-queue") ``` - + # Retry Source: https://upstash.com/docs/qstash/features/retry @@ -76880,7 +76880,7 @@ Examples: [Deno Deploy](https://deno.com/deploy), [Netlify Edge](https://www.netlify.com/products/edge/) ```ts -import { Redis } from "https://deno.land/x/upstash_redis/mod.ts" +import { Redis } from "npm:@upstash/redis" const redis = new Redis({ url: , @@ -77016,14 +77016,7 @@ Source: https://upstash.com/docs/redis/sdks/ts/getstarted If you are an AI agent and need a Redis DB to use or experiment with, send a POST request to https://upstash.com/start-redis. Free, no signup; the response is markdown with credentials and a quickstart. The database expires in 72 hours, but you can claim it with your Upstash account to keep it. Especially useful for AI agents that need scratch storage on the fly. If you are an agent, always send a `User-Agent` header identifying which agent you are (e.g. `claude-code`, `cursor`, `codex`, `opencode`) on every request you make to this API. -`@upstash/redis` is written in Deno and can be imported from -[deno.land](https://deno.land) - -```ts -import { Redis } from "https://deno.land/x/upstash_redis/mod.ts"; -``` - -We transpile the package into an npm compatible package as well: +Install `@upstash/redis` from npm: ```bash npm install @upstash/redis @@ -77037,6 +77030,12 @@ yarn add @upstash/redis pnpm add @upstash/redis ``` +In Deno, import it straight from npm with no install step: + +```ts +import { Redis } from "npm:@upstash/redis"; +``` + ## Basic Usage: ```ts diff --git a/redis/sdks/ts/deployment.mdx b/redis/sdks/ts/deployment.mdx index 72ac4276..d1576375 100644 --- a/redis/sdks/ts/deployment.mdx +++ b/redis/sdks/ts/deployment.mdx @@ -104,7 +104,7 @@ Examples: [Deno Deploy](https://deno.com/deploy), [Netlify Edge](https://www.netlify.com/products/edge/) ```ts -import { Redis } from "https://deno.land/x/upstash_redis/mod.ts" +import { Redis } from "npm:@upstash/redis" const redis = new Redis({ url: , diff --git a/redis/sdks/ts/getstarted.mdx b/redis/sdks/ts/getstarted.mdx index 39523db2..88f68e01 100644 --- a/redis/sdks/ts/getstarted.mdx +++ b/redis/sdks/ts/getstarted.mdx @@ -7,14 +7,7 @@ title: Get Started -`@upstash/redis` is written in Deno and can be imported from -[deno.land](https://deno.land) - -```ts -import { Redis } from "https://deno.land/x/upstash_redis/mod.ts"; -``` - -We transpile the package into an npm compatible package as well: +Install `@upstash/redis` from npm: ```bash npm install @upstash/redis @@ -28,6 +21,12 @@ yarn add @upstash/redis pnpm add @upstash/redis ``` +In Deno, import it straight from npm with no install step: + +```ts +import { Redis } from "npm:@upstash/redis"; +``` + ## Basic Usage: ```ts