BaseAdapter Class
Item Index
Methods
clear
()
public
Clears all key/value pairs from storage
getItem
(
public
-
key
Gets a value from storage based on a given key
Parameters:
-
key
StringThe key to use when retrieving a value from storage
Returns:
The value retrieved from storage based on the given key
key
()
keys
()
public
Returns all the keys that are currently in the storage "world" in sorted order (where the namespace defines the world boundary).
length
()
Number
public
The current length/number of items in storage
Returns:
Number:
The number of items in storage
removeItem
(
public
-
key
Removes a value from storage using a given key
Parameters:
-
key
StringThe key/value to remove from storage
setItem
(
public
-
key
-
value
Sets a value into storage under a provided key
Parameters:
-
key
StringThe key name to store the given value under
-
value
A value to store under a specified key
Properties
serializer
private
The serializer to use when storing values into storage