Skip to content

SessionStore

class

Back to Helios Web API

Kind
class
Source
src/storage/HeliosStorageManager.js:494

Description

Low-level session record store used by Helios storage managers.

Signature

export class SessionStore {

Configuration

General configuration setters and compatibility helpers.

get(id, options = {})

Source: src/storage/HeliosStorageManager.js:641

Returns the current get value or state.

Parameters

NameTypeAttributesDefaultDescription
idValue passed to get.
optionsObjectoptional{}Options object for this operation.

getAll()

Source: src/storage/HeliosStorageManager.js:686

Returns the current all value or state.

Example


const value = helios.getAll();

getUnfinishedSessionId(workspaceId = null)

Source: src/storage/HeliosStorageManager.js:721

Returns the current unfinished session id value or state.

Parameters

NameTypeAttributesDefaultDescription
workspaceIdoptionalnullValue passed to getUnfinishedSessionId.

setUnfinishedSessionId(id, workspaceId = null) → {this}

Source: src/storage/HeliosStorageManager.js:727

Set the unfinished session id setting.

Parameters

NameTypeAttributesDefaultDescription
idValue passed to setUnfinishedSessionId.
workspaceIdoptionalnullValue passed to setUnfinishedSessionId.

Returns

This instance.

Type this

Utilities

Additional public helpers that do not belong to a narrower API area.

key(id)

Source: src/storage/HeliosStorageManager.js:503

Configures or reads key.

Parameters

NameTypeAttributesDefaultDescription
idValue passed to key.

networkDataRecordId(id)

Source: src/storage/HeliosStorageManager.js:507

Configures or reads network data record id.

Parameters

NameTypeAttributesDefaultDescription
idValue passed to networkDataRecordId.

positionDataRecordId(id)

Source: src/storage/HeliosStorageManager.js:511

Configures or reads position data record id.

Parameters

NameTypeAttributesDefaultDescription
idValue passed to positionDataRecordId.

unfinishedSessionKeyFor(workspaceId = null)

Source: src/storage/HeliosStorageManager.js:515

Configures or reads unfinished session key for.

Parameters

NameTypeAttributesDefaultDescription
workspaceIdoptionalnullValue passed to unfinishedSessionKeyFor.

put(record)

Source: src/storage/HeliosStorageManager.js:624

Configures or reads put.

Parameters

NameTypeAttributesDefaultDescription
recordValue passed to put.

delete(id)

Source: src/storage/HeliosStorageManager.js:708

Configures or reads delete.

Parameters

NameTypeAttributesDefaultDescription
idValue passed to delete.