Skip to content
W. ❝Mac❞ McMeans edited this page Jan 2, 2024 · 19 revisions

localDataStorage.set( keyName, value )

This method stores value under keyName, creating a new key if necessary, where the key prefix is prepended to keyName. Data types are preserved, so if a Float was set then a Float will be returned. If data obfuscation is desired, use safeset.

This will overwrite an existing value for keyName. If this happens, the prior value cannot be retrieved.

The value of the updated key is returned when this method executes.

EXAMPLES:

● localData.set( 'key1', 'Belgian' )
● localData.set( 'key2', 1200.0047 )
● localData.set( 'key3', true )
● localData.set( 'key4', { 'RSK' : [1,3,5,7,9] } )
● localData.set( 'key5', null )

🌐 This method may fire an event allowing you to monitor the key change.

✨ The complement to this is get.

🏿 The corresponding Memory Key method is _set.

📝 NOTE: Keys stored by this method can also be retrieved using forceget, at the loss of the data type.

localStorage Keys

The usual suspects:

set / get      clear      key      remove

The esoteric ones:

Array Keys:
push / pull, pullall      poke      contains      where

Broadcasting:
broadcast

Bypass:
forceset / forceget

Data Transfer:
import / export

Duplicates:
countdupes, showdupes, listdupes

Internals:
cancrunch      crunch / uncrunch

shufflestring / unshufflestring

xorstring

Management:
keys

Memory Consumption:

Memory Quota:
showquota

Query:
haskey, hasval, hastype

Security:
safeset / safeget

setscramblekey / getscramblekey

Type Check:
isarray      isbigint      isboolean      iscrunch

isdate      isfloat      isinteger      isnull

isnumber      isobject      isstring

showtype

Utility:
chopget      copy      softset      rename

Properties:

channel      length      quota      version

Settings:

verbosity

Memory Keys

Standard:

_set / _get      _clear      _key      _remove

Unconventional:

Data Sync:
_backup / _restore

Management:
_keys

Security:
_safeset / _safeget

Type Check:
_isarray      _isbigint      _isboolean      _iscrunch

_isdate      _isfloat      _isinteger      _isnull

_isnumber      _isobject      _isstring

_showtype

Utility:
_chopget      _copy      _softset      _rename

Clone this wiki locally