-
-
Notifications
You must be signed in to change notification settings - Fork 16
Storage Overhead
The very nature of storing JavaScript primitives in localStorage involves some extra work. Effectively, this means that a one-byte marker flag is used to track the data type for the key value.
For example, a key value of 3.14159 requires 8 bytes of storage (7 for the value plus 1 for the flag). Where everything is treated as a string, one additional byte per key value stored is the price of maintaining the integrity of the data type.
Memory Keys have no such overhead.
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