PrefixedPersistence
Class: PrefixedPersistence
Constructors
constructor
new PrefixedPersistence(prefix
, persistence
)
Parameters
Name | Type |
---|---|
prefix | string |
persistence | Persistence |
Defined in
keystore/persistence/PrefixedPersistence.ts:7
Properties
persistence
persistence: Persistence
Defined in
keystore/persistence/PrefixedPersistence.ts:5
prefix
prefix: string
Defined in
keystore/persistence/PrefixedPersistence.ts:4
Methods
buildKey
Private
buildKey(key
): string
Parameters
Name | Type |
---|---|
key | string |
Returns
string
Defined in
keystore/persistence/PrefixedPersistence.ts:20
getItem
getItem(key
): Promise
<null
| Uint8Array
>
Parameters
Name | Type |
---|---|
key | string |
Returns
Promise
<null
| Uint8Array
>
Defined in
keystore/persistence/PrefixedPersistence.ts:12
setItem
setItem(key
, value
): Promise
<void
>
Parameters
Name | Type |
---|---|
key | string |
value | Uint8Array |
Returns
Promise
<void
>