-
-
Notifications
You must be signed in to change notification settings - Fork 16
._chopget
localDataStorage._chopget( keyName )
This Memory Key method retrieves the value stored under keyName and then immediately removes keyName from the store. The data type is returned intact, so if an Object was stored, an Object will be returned. This method is useful when the requirement involves the immediate removal of a key because it's no longer needed after its value has been retrieved.
EXAMPLE:
● localData._chopget( 'key4' ) --> Object {RSK: Array(5)}
● localData._get( 'key4' ) --> undefined
🛢 The corresponding disk-based method is chopget.
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