Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

WorkerStorage

interface WorkerStorage {
get(key: string): Promise<{
body: ReadableStream<Uint8Array>;
httpMetadata?: HttpMetadata;
}
| null
>
;
put(
key: string,
value: ArrayBufferLike | ArrayBuffer | ReadableStream,
options?: {
httpMetadata?: HttpMetadata;
}
,
): Promise<void>;
}

§Methods

§
get(key: string): Promise<{
body: ReadableStream<Uint8Array>;
httpMetadata?: HttpMetadata;
}
| null
>
[src]
§
put(
key: string,
value: ArrayBufferLike | ArrayBuffer | ReadableStream,
options?: {
httpMetadata?: HttpMetadata;
}
,
): Promise<void>
[src]