SessionStore
- Kind
- class
- Source
- src/storage/HeliosStorageManager.js:494
Description
Low-level session record store used by Helios storage managers.
Signature
Configuration
General configuration setters and compatibility helpers.
get(id, options = {})
Source: src/storage/HeliosStorageManager.js:641
Returns the current get value or state.
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
id | Value passed to get. | |||
options | Object | optional | {} | 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
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
workspaceId | optional | null | Value passed to getUnfinishedSessionId. |
setUnfinishedSessionId(id, workspaceId = null) → {this}
Source: src/storage/HeliosStorageManager.js:727
Set the unfinished session id setting.
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
id | Value passed to setUnfinishedSessionId. | |||
workspaceId | optional | null | Value passed to setUnfinishedSessionId. |
Returns
This instance.
TypethisUtilities
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
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
id | Value passed to key. |
networkDataRecordId(id)
Source: src/storage/HeliosStorageManager.js:507
Configures or reads network data record id.
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
id | Value passed to networkDataRecordId. |
positionDataRecordId(id)
Source: src/storage/HeliosStorageManager.js:511
Configures or reads position data record id.
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
id | Value passed to positionDataRecordId. |
unfinishedSessionKeyFor(workspaceId = null)
Source: src/storage/HeliosStorageManager.js:515
Configures or reads unfinished session key for.
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
workspaceId | optional | null | Value passed to unfinishedSessionKeyFor. |
put(record)
Source: src/storage/HeliosStorageManager.js:624
Configures or reads put.
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
record | Value passed to put. |
delete(id)
Source: src/storage/HeliosStorageManager.js:708
Configures or reads delete.
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
id | Value passed to delete. |