Interface: shaka.offline.IStorageEngine

An interface to abstract away the type of storage used on a specific platform.
Implementations:
Extends:
Source:

Members

forEach

Calls the given callback for each value in the store. The promise will resolve after all items have been traversed.
Implementations:
Source:

get

Gets the item with the given ID in the store.
Implementations:
Source:

init

Initializes the storage system and creates the required tables. If opt_retryCount is given, then we are creating a new database and expect an 'upgradeneeded' event. If we don't get one, we will retry opt_retryCount times. This is used to work around a bug in IE/Edge and is only used in our unit tests.
Implementations:
Source:
See:

initialized

Gets whether the storage engine is initialized.
Implementations:
Source:

insert

Adds or updates the given value in the store.
Implementations:
Source:

remove

Removes the item with the given key.
Implementations:
Source:

removeWhere

Removes all items for which the given predicate returns true.
Implementations:
Source:

reserveId

Reserves the next ID and returns it.
Implementations:
Source: