Skip to content

Commit f9291ef

Browse files
committed
Rendering the same file into Hyperdrive Wrangler.
Updating Getting started for clarity.
1 parent e3bf7fd commit f9291ef

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

src/content/docs/hyperdrive/get-started.mdx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Hyperdrive accelerates access to your existing databases from Cloudflare Workers
1111

1212
By maintaining a connection pool to your database within Cloudflare's network, Hyperdrive reduces seven round-trips to your database before you can even send a query: the TCP handshake (1x), TLS negotiation (3x), and database authentication (3x).
1313

14-
Hyperdrive understands the difference between read and write queries to your database, and can cache the most common read queries, improving performance and reducing load on your origin database.
14+
Hyperdrive understands the difference between read and write queries to your database, and caches the most common read queries, improving performance and reducing load on your origin database.
1515

1616
This guide will instruct you through:
1717

@@ -125,6 +125,14 @@ To create a Hyperdrive connection, run the `wrangler` command, replacing the pla
125125
npx wrangler hyperdrive create <YOUR_CONFIG_NAME> --connection-string="postgres://user:password@HOSTNAME_OR_IP_ADDRESS:PORT/database_name"
126126
```
127127

128+
:::note[Manage caching]
129+
If you wish to disable caching, pass the flag `--caching-disabled`.
130+
131+
Alternatively, you can use the `--max-age` flag to specify the maximum duration (in seconds) for which items should persist in the cache, before they are evicted. Default value is 60 seconds.
132+
133+
Refer to [Hyperdrive Wrangler commands](/hyperdrive/reference/wrangler-commands/) for more information.
134+
:::
135+
128136
If successful, the command will output your new Hyperdrive configuration:
129137

130138
```json
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
---
22
pcx_content_type: navigation
33
title: Wrangler commands
4-
external_link: /workers/wrangler/commands/#hyperdrive
54
sidebar:
65
order: 12
76

87
---
8+
9+
import { Render } from "~/components";
10+
11+
<Render file="hyperdrive" product="workers/wrangler-commands"/>

0 commit comments

Comments
 (0)