Skip to content

Store

Defined in: src/backends/store/store.ts:26

Represents a key-value store.

readonly optional flags?: readonly StoreFlag[]

Defined in: src/backends/store/store.ts:62

Use for optimizations


readonly optional label?: string

Defined in: src/backends/store/store.ts:42

A name for this instance of the store. For example, you might use a share name for a network-based store


readonly name: string

Defined in: src/backends/store/store.ts:36

What the file system using this store should be called. For example, tmpfs for an in memory store


readonly optional type?: number

Defined in: src/backends/store/store.ts:30

FileSystem#id


readonly optional uuid?: `${string}-${string}-${string}-${string}-${string}`

Defined in: src/backends/store/store.ts:47

A UUID for this instance of the store.

optional allocId(): [ino: number, data: number]

Defined in: src/backends/store/store.ts:72

Allocate IDs for a new inode + data

[ino: number, data: number]


sync(): Promise<void>

Defined in: src/backends/store/store.ts:52

Syncs the store

Promise<void>


transaction(): Transaction

Defined in: src/backends/store/store.ts:57

Begins a new transaction.

Transaction


optional usage(): UsageInfo

Defined in: src/backends/store/store.ts:67

Usage information for the store

UsageInfo