Namespace: persistStorage

ENABLE. persistStorage

Cross-domain persistent storage functions. Data can be accessed across different domains, unlike localStorage.

  • Use for sharing data between related domains or subdomains.
  • Values that can be stored include: strings, numbers, booleans, plain objects, and arrays.

Methods

staticENABLE.persistStorage.clear(){Object}

storage.js, line 122

Remove all stored values.

Since:
  • 1.0.0
Returns:
Name Type Description
object Object
Name Type Description
status_code String ENABLE.status.SUCCESS

staticENABLE.persistStorage.getItem(Key){Object}

storage.js, line 65

Return stored item associated with key provided.

Name Type Description
Key String

The key referencing the value to be returned.

Since:
  • 1.0.0
Returns:
Name Type Description
object Object
Name Type Description
status_code String ENABLE.status.SUCCESS
result Boolean | String | Number | Array | Object value associated with the key, null when not found

staticENABLE.persistStorage.removeItem(Key){Object}

storage.js, line 106

Remove stored value associated with key provided.

Name Type Description
Key String

key for looking up value

Since:
  • 1.0.0
Returns:
Name Type Description
object Object
Name Type Description
status_code String ENABLE.status.SUCCESS or ENABLE.status.INVALID_ARGUMENT

staticENABLE.persistStorage.setItem(Key, Value){Object}

storage.js, line 86

Update/Store the item associate with key provided.

Name Type Description
Key String

The key of the item to be replaced with value.

Value Boolean | String | Number | Array | Object

value to be updated or/and stored.

Since:
  • 1.0.0
Returns:
Name Type Description
object Object
Name Type Description
status_code String ENABLE.status.SUCCESS or ENABLE.status.INVALID_ARGUMENT