Methods
getFromStorage
- getFromStorage(key, agent?): Promise<string>
-
Parameters
-
key: string
-
Optional
agent: IAgent
Returns Promise<string>
getKeysFromStorage
- getKeysFromStorage(agent?): Promise<StoredKey[]>
-
Returns Promise<StoredKey[]>
removeAllFromStorage
- removeAllFromStorage(agent?): Promise<StoredKey[]>
-
Returns Promise<StoredKey[]>
removeFromStorage
- removeFromStorage(key, agent?): Promise<StoredKeyValue>
-
Parameters
-
key: string
-
Optional
agent: IAgent
Returns Promise<StoredKeyValue>
subscribeToStorage
- subscribeToStorage(key, agent?, handler?): void
-
Parameters
-
key: string
-
Optional
agent: IAgent
-
Optional
handler: ((data) => void)
-
- (data): void
-
Returns void
Returns void
unsubscribeFromStorage
- unsubscribeFromStorage(key, agent?): void
-
Parameters
-
key: string
-
Optional
agent: IAgent
Returns void
writeToStorage
- writeToStorage(key, value, agent?): Promise<StoredKeyValue>
-
Parameters
-
key: string
-
value: string
-
Optional
agent: IAgent
Returns Promise<StoredKeyValue>