workers-rs icon indicating copy to clipboard operation
workers-rs copied to clipboard

[Feature] Support allowConcurrency and noCache options for Durable Object get() function

Open lukevalenta opened this issue 10 months ago • 1 comments

Is there an existing issue for this?

  • [x] I have searched the existing issues

Description

As described in https://developers.cloudflare.com/durable-objects/api/storage-api/#supported-options, it should be possible to submit a Durable Object get() request with the allowConcurrency and/or noCache options.

This may already be possible today by calling https://github.com/cloudflare/workers-rs/blob/a16090aa737be88b1d647a7be319c5159b728c61/worker-sys/src/types/durable_object/namespace.rs#L39 directly. If so, we should document it and add an example.

lukevalenta avatar Mar 19 '25 20:03 lukevalenta