API ReferenceGlobalsLocalStorageHelper

# Class: LocalStorageHelper

# Hierarchy

  • LocalStorageHelper

# Implements

# Index

# Constructors

# Properties

# Methods

# Constructors

# constructor

+ new LocalStorageHelper(_context_: string): LocalStorageHelper

Defined in packages/common-core/src/utils/local-storage-helper.ts:23

Parameters:

Name Type
_context_ string

Returns: LocalStorageHelper

# Properties

# context

context: string

Defined in packages/common-core/src/utils/local-storage-helper.ts:25


# creator

creator: string

_Implementation of Context.creator_

Defined in packages/common-core/src/utils/local-storage-helper.ts:20

# Methods

# addItem

addItem(id: string, payload: any, storeId: string, limit: number): void

Defined in packages/common-core/src/utils/local-storage-helper.ts:42

Parameters:

Name Type Default
id string -
payload any -
storeId string DEFAULT_STORE
limit number DEFAULT_STORE_SIZE

Returns: void


# getItem

getItem(id: string, storeId: string): any

Defined in packages/common-core/src/utils/local-storage-helper.ts:68

Parameters:

Name Type Default
id string -
storeId string DEFAULT_STORE

Returns: any


# getStore

getStore(storeId: string): Store

Defined in packages/common-core/src/utils/local-storage-helper.ts:29

Parameters:

Name Type Default
storeId string DEFAULT_STORE

Returns: Store


# saveStore

saveStore(storeId: string, store: Store): void

Defined in packages/common-core/src/utils/local-storage-helper.ts:38

Parameters:

Name Type
storeId string
store Store

Returns: void