Home Reference Source Test
import {Storage} from 'octobile-sdk/src/storage/storage.js'
public class | source

Storage

Constructor Summary

Public Constructor
public

Member Summary

Private Members
private

_db: *

Method Summary

Public Methods
public

async action(func: *): *

public

async batch(actions: *): *

public

getCollection(collection: *): *

public

async getItem(key: *): *

public

async reset(): *

public

async setItem(key: *, value: *): *

Public Constructors

public constructor() source

Private Members

private _db: * source

Public Methods

public async action(func: *): * source

Params:

NameTypeAttributeDescription
func *

Return:

*

public async batch(actions: *): * source

Params:

NameTypeAttributeDescription
actions *

Return:

*

public getCollection(collection: *): * source

Params:

NameTypeAttributeDescription
collection *

Return:

*

public async getItem(key: *): * source

Params:

NameTypeAttributeDescription
key *

Return:

*

public async reset(): * source

Return:

*

public async setItem(key: *, value: *): * source

Params:

NameTypeAttributeDescription
key *
value *

Return:

*