Skip to content

Commit 06df617

Browse files
fix broken links (#239)
## 💸 TL;DR <!-- What's the three sentence summary of purpose of the PR --> | Link | Before | After | | --- | --- | --- | | Redis → TxClientLike (two occurrences) | `/type-aliases/TxClientLike` — 404 | `/interfaces/TxClientLike` — valid reference | | Redis → Compression | `#compression-experimental` — missing section | `#migration-example`, renamed “Migration Example” | | Games and Mod Tools → Quickstart | `/docs/quickstart/` — HTTP 404 | `/docs/quickstart` — valid URL | | Redis → Errors inside a transaction | `/develop/interact/transactions/` redirected and lost the section anchor | `/develop/using-commands/transactions/#errors-inside-a-transaction` goes directly to the section |
1 parent 0e07451 commit 06df617

4 files changed

Lines changed: 16 additions & 8 deletions

File tree

‎docs/capabilities/server/redis.mdx‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ await redisCompressed.set('cache:heavy_payload', JSON.stringify(payload));
7575

7676
The compressed client compresses supported writes when compression saves space, and decompresses those values on supported reads.
7777

78-
:::tip: Do not mix `redis` and `redisCompressed` on the same key. Data written by `redisCompressed` should be read with `redisCompressed`. To migrate existing data, read the old values with the standard client and write them back with the compressed client. For a complete migration example, see [Compression](#compression-experimental).
78+
:::tip: Do not mix `redis` and `redisCompressed` on the same key. Data written by `redisCompressed` should be read with `redisCompressed`. To migrate existing data, read the old values with the standard client and write them back with the compressed client. For a complete migration example, see [Migration Example](#migration-example).
7979
:::
8080

8181
## Shared state
@@ -625,18 +625,18 @@ Redis transactions allow a group of commands to be executed in a single isolated
625625
- Increment the count for selected option.
626626
- Add the user to voted user list.
627627

628-
The `watch` command provides an entrypoint for transactions. It returns a [TxClientLike](https://developers.reddit.com/docs/api/public-api/type-aliases/TxClientLike) which can be used to call `multi`, `exec`, `discard`, `unwatch`, and all other Redis commands to be executed within a transaction.
628+
The `watch` command provides an entrypoint for transactions. It returns a [TxClientLike](../../api/public-api/interfaces/TxClientLike.md) which can be used to call `multi`, `exec`, `discard`, `unwatch`, and all other Redis commands to be executed within a transaction.
629629

630630
You can sequence all of the above steps in a single transaction using `multi` and `exec` to ensure that either all of the steps happen together or none at all.
631631

632-
If an error occurs inside a transaction before `exec` is called, Redis discards the transaction automatically. See the Redis docs: [Errors inside a transaction](https://redis.io/docs/latest/develop/interact/transactions/#errors-inside-a-transaction) for more info.
632+
If an error occurs inside a transaction before `exec` is called, Redis discards the transaction automatically. See the Redis docs: [Errors inside a transaction](https://redis.io/docs/latest/develop/using-commands/transactions/#errors-inside-a-transaction) for more info.
633633

634634
| **Command** | **Action** | **Limits** |
635635
| --------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------- |
636636
| [multi](https://redis.io/commands/multi/) | Marks the start of a transaction block. | Max concurrent transactions per installation: 20 (default) |
637637
| [exec](https://redis.io/commands/exec/) | Executes all previously queued commands in a transaction and restores the connection state to normal. | Transaction execution timeout: 5 seconds |
638638
| [discard](https://redis.io/commands/discard/) | Flushes all previously queued commands in a transaction and restores the connection state to normal. | None |
639-
| [watch](https://redis.io/commands/watch/) | Marks the given keys to be watched for conditional execution of a transaction. `watch` returns a [TxClientLike](https://developers.reddit.com/docs/api/public-api/type-aliases/TxClientLike) which should be used to call Redis commands in a transaction. | None |
639+
| [watch](https://redis.io/commands/watch/) | Marks the given keys to be watched for conditional execution of a transaction. `watch` returns a [TxClientLike](../../api/public-api/interfaces/TxClientLike.md) which should be used to call Redis commands in a transaction. | None |
640640
| [unwatch](https://redis.io/commands/unwatch/) | Flushes all the previously watched keys for a transaction. | None |
641641

642642
<details>

‎docs/quickstart/quickstart.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
---
2+
slug: /quickstart
3+
---
4+
15
# App quickstart
26

37
This tutorial takes you through the step-by-step process of building your first app with Devvit. It should take you about 1 minute to complete. Once complete, you'll be able to see your app in a Reddit post

‎versioned_docs/version-0.14/capabilities/server/redis.mdx‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ await redisCompressed.set('cache:heavy_payload', JSON.stringify(payload));
7575

7676
The compressed client compresses supported writes when compression saves space, and decompresses those values on supported reads.
7777

78-
:::tip: Do not mix `redis` and `redisCompressed` on the same key. Data written by `redisCompressed` should be read with `redisCompressed`. To migrate existing data, read the old values with the standard client and write them back with the compressed client. For a complete migration example, see [Compression](#compression-experimental).
78+
:::tip: Do not mix `redis` and `redisCompressed` on the same key. Data written by `redisCompressed` should be read with `redisCompressed`. To migrate existing data, read the old values with the standard client and write them back with the compressed client. For a complete migration example, see [Migration Example](#migration-example).
7979
:::
8080

8181
## Shared state
@@ -625,18 +625,18 @@ Redis transactions allow a group of commands to be executed in a single isolated
625625
- Increment the count for selected option.
626626
- Add the user to voted user list.
627627

628-
The `watch` command provides an entrypoint for transactions. It returns a [TxClientLike](https://developers.reddit.com/docs/api/public-api/type-aliases/TxClientLike) which can be used to call `multi`, `exec`, `discard`, `unwatch`, and all other Redis commands to be executed within a transaction.
628+
The `watch` command provides an entrypoint for transactions. It returns a [TxClientLike](../../api/public-api/interfaces/TxClientLike.md) which can be used to call `multi`, `exec`, `discard`, `unwatch`, and all other Redis commands to be executed within a transaction.
629629

630630
You can sequence all of the above steps in a single transaction using `multi` and `exec` to ensure that either all of the steps happen together or none at all.
631631

632-
If an error occurs inside a transaction before `exec` is called, Redis discards the transaction automatically. See the Redis docs: [Errors inside a transaction](https://redis.io/docs/latest/develop/interact/transactions/#errors-inside-a-transaction) for more info.
632+
If an error occurs inside a transaction before `exec` is called, Redis discards the transaction automatically. See the Redis docs: [Errors inside a transaction](https://redis.io/docs/latest/develop/using-commands/transactions/#errors-inside-a-transaction) for more info.
633633

634634
| **Command** | **Action** | **Limits** |
635635
| --------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------- |
636636
| [multi](https://redis.io/commands/multi/) | Marks the start of a transaction block. | Max concurrent transactions per installation: 20 (default) |
637637
| [exec](https://redis.io/commands/exec/) | Executes all previously queued commands in a transaction and restores the connection state to normal. | Transaction execution timeout: 5 seconds |
638638
| [discard](https://redis.io/commands/discard/) | Flushes all previously queued commands in a transaction and restores the connection state to normal. | None |
639-
| [watch](https://redis.io/commands/watch/) | Marks the given keys to be watched for conditional execution of a transaction. `watch` returns a [TxClientLike](https://developers.reddit.com/docs/api/public-api/type-aliases/TxClientLike) which should be used to call Redis commands in a transaction. | None |
639+
| [watch](https://redis.io/commands/watch/) | Marks the given keys to be watched for conditional execution of a transaction. `watch` returns a [TxClientLike](../../api/public-api/interfaces/TxClientLike.md) which should be used to call Redis commands in a transaction. | None |
640640
| [unwatch](https://redis.io/commands/unwatch/) | Flushes all the previously watched keys for a transaction. | None |
641641

642642
<details>

‎versioned_docs/version-0.14/quickstart/quickstart.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
---
2+
slug: /quickstart
3+
---
4+
15
# App quickstart
26

37
This tutorial takes you through the step-by-step process of building your first app with Devvit. It should take you about 1 minute to complete. Once complete, you'll be able to see your app in a Reddit post

0 commit comments

Comments
 (0)