method MemoryProvider.prototype.put
MemoryProvider.prototype.put(
path: string,
data: Uint8Array,
_options?: PutObjectOptions
): Promise<void>

Stores an object in memory.

Object attributes are ACCEPTED AND NOT PERSISTED: this store holds bytes only and its getSignedUrl produces a synthetic URL nothing fetches, so retaining a content type would be a field no code path reads. Documented per provider in the package README rather than silently dropped.

Parameters

path: string

Object path/key

Object bytes

optional
_options: PutObjectOptions

Accepted for interface parity; see above

Return Type

Promise<void>

Usage

import { MemoryProvider } from "storage-plugin/src/index.ts";