You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 06df617
Browse filesBrowse the repository at this point in the historyBrowse files
The compressed client compresses supported writes when compression saves space, and decompresses those values on supported reads.
77
77
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).
79
79
:::
80
80
81
81
## Shared state
@@ -625,18 +625,18 @@ Redis transactions allow a group of commands to be executed in a single isolated
625
625
- Increment the count for selected option.
626
626
- Add the user to voted user list.
627
627
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.
629
629
630
630
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.
631
631
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.
|[multi](https://redis.io/commands/multi/)| Marks the start of a transaction block. | Max concurrent transactions per installation: 20 (default) |
637
637
|[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 |
638
638
|[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 |
640
640
|[unwatch](https://redis.io/commands/unwatch/)| Flushes all the previously watched keys for a transaction. | None |
Copy file name to clipboardExpand all lines: docs/quickstart/quickstart.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,7 @@
1
+
---
2
+
slug: /quickstart
3
+
---
4
+
1
5
# App quickstart
2
6
3
7
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
The compressed client compresses supported writes when compression saves space, and decompresses those values on supported reads.
77
77
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).
79
79
:::
80
80
81
81
## Shared state
@@ -625,18 +625,18 @@ Redis transactions allow a group of commands to be executed in a single isolated
625
625
- Increment the count for selected option.
626
626
- Add the user to voted user list.
627
627
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.
629
629
630
630
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.
631
631
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.
|[multi](https://redis.io/commands/multi/)| Marks the start of a transaction block. | Max concurrent transactions per installation: 20 (default) |
637
637
|[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 |
638
638
|[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 |
640
640
|[unwatch](https://redis.io/commands/unwatch/)| Flushes all the previously watched keys for a transaction. | None |
Copy file name to clipboardExpand all lines: versioned_docs/version-0.14/quickstart/quickstart.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,7 @@
1
+
---
2
+
slug: /quickstart
3
+
---
4
+
1
5
# App quickstart
2
6
3
7
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