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 objectObject Name Type Description status_codeString ENABLE.status.SUCCESS -
staticENABLE.persistStorage.getItem(Key){Object}
storage.js, line 65 -
Return stored item associated with key provided.
Name Type Description KeyString The key referencing the value to be returned.
- Since:
- 1.0.0
Returns:
Name Type Description objectObject Name Type Description status_codeString ENABLE.status.SUCCESSresultBoolean | 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 KeyString key for looking up value
- Since:
- 1.0.0
Returns:
Name Type Description objectObject Name Type Description status_codeString ENABLE.status.SUCCESSorENABLE.status.INVALID_ARGUMENT -
staticENABLE.persistStorage.setItem(Key, Value){Object}
storage.js, line 86 -
Update/Store the item associate with key provided.
Name Type Description KeyString The key of the item to be replaced with value.
ValueBoolean | String | Number | Array | Object value to be updated or/and stored.
- Since:
- 1.0.0
Returns:
Name Type Description objectObject Name Type Description status_codeString ENABLE.status.SUCCESSorENABLE.status.INVALID_ARGUMENT