-
-
Notifications
You must be signed in to change notification settings - Fork 16
._softset
localDataStorage._softset( keyName, value )
This Memory Key method stores value under keyName, creating a new key if necessary, but cannot overwrite an existing value. In other words, this can only create a new key, and will ignore all existing keys having keyName. This method is useful when the requirement involves preserving an existing key from being overwritten without having to test for existence (for example, calling _haskey) prior to changing values.
EXAMPLES:
● localData._set( 'key2', 1200.0047 )
● localData._softset( 'key2', 'test' )
● localData._get( 'key2' ) --> 1200.0047
🛢 The corresponding disk-based method is softset.
Array Keys:
push / pull, pullall poke contains where
Broadcasting:
broadcast
Data Transfer:
import / export
Duplicates:
countdupes, showdupes, listdupes
Internals:
cancrunch crunch / uncrunch
shufflestring / unshufflestring
Management:
keys
Memory Consumption:
Memory Quota:
showquota
Query:
haskey, hasval, hastype
setscramblekey / getscramblekey
Type Check:
isarray isbigint isboolean iscrunch
isdate isfloat isinteger isnull
Utility:
chopget copy softset rename
_set / _get _clear _key _remove
Management:
_keys
Type Check:
_isarray _isbigint _isboolean _iscrunch