-
-
Notifications
You must be signed in to change notification settings - Fork 16
.rename
localDataStorage.rename( existingKey, newKey )
This method assigns the value of existingKey to newKey, where the key prefix is prepended to newKey. The existingKey is deleted. Data types are preserved, so if a Float was set then a Float will be returned.
If newKey already exists, an error will be thrown because existing keys cannot be overwritten.
EXAMPLES:
● localData.rename( 'key1', 'key1-1000' )
An event is fired from this method allowing you to monitor the key name change.
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