Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions llms-full.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48004,6 +48004,18 @@ fn main() -> redis::RedisResult<()> {

</AccordionGroup>

## REST API

`EVAL` is available over the Upstash Redis REST API as a `POST` to `{UPSTASH_REDIS_REST_URL}` with the command and its arguments sent as a JSON array in the request body, in Redis order: `<script>` first, then `<numkeys>`:

```bash
curl -X POST https://YOUR_ENDPOINT.upstash.io \
-H "Authorization: Bearer $UPSTASH_REDIS_REST_TOKEN" \
-d '["EVAL", "return ARGV[1]", 0, "hello"]'
```

The response is a JSON object with a `result` field, `{ "result": "hello" }` in this example. See [REST API](/docs/redis/features/restapi) for the general request conventions.

# EVAL_RO
Source: https://upstash.com/docs/redis/commands/scripting/eval-ro

Expand Down Expand Up @@ -76735,6 +76747,8 @@ Upstash supports Redis client protocol up to version `8.2`. We are also graduall
SDK command references may cover a smaller set of typed helpers.
For example, see the [TypeScript SDK command reference](/docs/redis/sdks/ts/commands/overview) for the commands documented in `@upstash/redis`.

Lua scripting over the REST API is documented in the [EVAL](/docs/redis/commands/scripting/eval#rest-api) command reference.

Most unsupported items are on our roadmap. If you need a feature that we do not support, email [support@upstash.com](mailto:support@upstash.com) so we can let you know when we plan to support it.

# Prod Pack & Enterprise
Expand Down
12 changes: 12 additions & 0 deletions redis/commands/scripting/eval.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -212,3 +212,15 @@ fn main() -> redis::RedisResult<()> {
</Accordion>

</AccordionGroup>

## REST API

`EVAL` is available over the Upstash Redis REST API as a `POST` to `{UPSTASH_REDIS_REST_URL}` with the command and its arguments sent as a JSON array in the request body, in Redis order: `<script>` first, then `<numkeys>`:

```bash
curl -X POST https://YOUR_ENDPOINT.upstash.io \
-H "Authorization: Bearer $UPSTASH_REDIS_REST_TOKEN" \
-d '["EVAL", "return ARGV[1]", 0, "hello"]'
```

The response is a JSON object with a `result` field, `{ "result": "hello" }` in this example. See [REST API](/redis/features/restapi) for the general request conventions.
2 changes: 2 additions & 0 deletions redis/overall/compatibility.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,6 @@ Upstash supports Redis client protocol up to version `8.2`. We are also graduall
SDK command references may cover a smaller set of typed helpers.
For example, see the [TypeScript SDK command reference](/redis/sdks/ts/commands/overview) for the commands documented in `@upstash/redis`.

Lua scripting over the REST API is documented in the [EVAL](/redis/commands/scripting/eval#rest-api) command reference.

Most unsupported items are on our roadmap. If you need a feature that we do not support, email [support@upstash.com](mailto:support@upstash.com) so we can let you know when we plan to support it.