Skip to main content

Interface: MemoryStorageOptions

Defined in: memory.ts:68

Extends

Properties

atRest?

optional atRest?: "off" | "preferred" | "required";

Defined in: contract.ts:166

preferred (default) encrypts when the platform supports it and warns otherwise.

Inherited from

OpenOptions.atRest


encryptionKey?

optional encryptionKey?: unknown;

Defined in: contract.ts:163

Inherited from

OpenOptions.encryptionKey


latencyMs?

optional latencyMs?: number;

Defined in: memory.ts:76

Artificial delay before every repo call, for exercising host spinners.


migrations?

optional migrations?: Migration[];

Defined in: contract.ts:164

Inherited from

OpenOptions.migrations


namespace?

optional namespace?: string;

Defined in: contract.ts:162

Inherited from

OpenOptions.namespace


now?

optional now?: () => number;

Defined in: memory.ts:78

Injectable clock, so tests can pin updatedAt/createdAt.

Returns

number


purgeUploadedBytes?

optional purgeUploadedBytes?: boolean;

Defined in: memory.ts:86

Opt-in to gc rule (b) from docs/09 §4.2 — freeing the bytes of uploaded attachments while keeping the metadata row. Off by default because the retention window (purgeSyncedAfterDays) is a sync-engine policy the memory adapter has no clock for; the conformance suite therefore pins only the orphan rule and the basemap: exemption.


quotaBytes?

optional quotaBytes?: number;

Defined in: memory.ts:74

Simulated device quota. When set, writes that would push estimate() past it reject with RASD_STORAGE_QUOTA and quota events fire at 80 % (warning) and 95 % (critical). Absent ⇒ unlimited, quotaBytes: null.