Skip to content

@modoki/engine / index / PrefsBackend

Interface: PrefsBackend

Storage

getAll()

getAll(prefix): Promise<Record<string, string>>

All entries whose full key starts with prefix, as { fullKey: envelopeString }.

Parameters

prefix

string

Returns

Promise<Record<string, string>>


remove()

remove(fullKey): Promise<void>

Remove one entry.

Parameters

fullKey

string

Returns

Promise<void>


set()

set(fullKey, value): Promise<void>

Write one entry atomically (full key → envelope string).

Parameters

fullKey

string

value

string

Returns

Promise<void>

Built with Modoki.