Interface IKeyValueRepository

interface IKeyValueRepository {
    delete: ((key: string) => MaybePromise<void>);
    deleteAll: (() => MaybePromise<void>);
    get: ((key: string) => MaybePromise<null | Uint8Array>);
    set: ((key: string, value: Uint8Array) => MaybePromise<void>);
}

Properties

Properties

delete: ((key: string) => MaybePromise<void>)

Delete a key-value pair

deleteAll: (() => MaybePromise<void>)
get: ((key: string) => MaybePromise<null | Uint8Array>)

Get a key-value pair

set: ((key: string, value: Uint8Array) => MaybePromise<void>)

Set a key-value pair