-
-
Notifications
You must be signed in to change notification settings - Fork 15
Switches
The following optional switches may be used when instantiating localDataStorage:
/q - quiet mode
/w - warn mode
Silent mode will not output anything to the console when localDataStorage starts up. This mode is handy when you don't need to see any warnings (or any other output).
In warn mode, the software will first check if the specified prefix has already been used with keys that exist in localStorage, and if so, a warning message is sent to the console. This mode is useful when you need to see warnings on startup. (Currently, the prefix check is the only warning available.)
When no switches are used, standard output will be sent to the console, but warnings will not appear even if they exist.
EXAMPLES:
Show standard output, ignoring any warnings
- z = localDataStorage( 'mac' ); -->
localDataStorage instantiated. The specified prefix (mac.) adds 4 bytes to every key name (stored using 8 bytes).
Show standard output, along with any warnings (in this case the prefix has already been used)
- z = localDataStorage( 'mac', '/w' ); -->
localDataStorage instantiated. The specified prefix (mac.) adds 4 bytes to every key name (stored using 8 bytes).
Attention! Keys with this prefix already exist in localStorage for this domain!
Show no output whatsoever
- z = localDataStorage( 'mac', '/q' ); -->
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