Skip to main content

Interface: KVWrite

This interface is experimental and might be removed or changed in the future without following semver versioning. Please be cautious.

Hierarchy

Properties

closed

closed: boolean

Inherited from

KVRead.closed

Methods

commit

commit(): Promise<void>

Returns

Promise<void>


del

del(key): Promise<void>

Parameters

NameType
keystring

Returns

Promise<void>


get

get(key): Promise<undefined | ReadonlyJSONValue>

Parameters

NameType
keystring

Returns

Promise<undefined | ReadonlyJSONValue>

Inherited from

KVRead.get


has

has(key): Promise<boolean>

Parameters

NameType
keystring

Returns

Promise<boolean>

Inherited from

KVRead.has


put

put(key, value): Promise<void>

Parameters

NameType
keystring
valueReadonlyJSONValue

Returns

Promise<void>


release

release(): void

Returns

void

Inherited from

KVRead.release