Skip to content
Merged
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
10 changes: 9 additions & 1 deletion src/content/docs/hyperdrive/get-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Hyperdrive accelerates access to your existing databases from Cloudflare Workers

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).

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.
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.

This guide will instruct you through:

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

:::note[Manage caching]
If you wish to disable caching, pass the flag `--caching-disabled`.

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.

Refer to [Hyperdrive Wrangler commands](/hyperdrive/reference/wrangler-commands/) for more information.
:::

If successful, the command will output your new Hyperdrive configuration:

```json
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
---
pcx_content_type: navigation
title: Wrangler commands
external_link: /workers/wrangler/commands/#hyperdrive
sidebar:
order: 12

---

import { Render } from "~/components";

<Render file="hyperdrive" product="workers/wrangler-commands"/>