new UWA.Storage.Adapter.IGoogle()
Extends
- UWA.Storage.Adapter.Abstract
Index
Members
-
type :String
-
The type of storage engine used by Adapter.
Type
- String
-
limit :Number
-
The maximum limit of the storage engine.
Type
- Number
Methods
-
connect(database)
-
Initialize database connexion.
Parameters
Name Type Description database
String The database name
-
isAvailable() → {Boolean}
-
Check if adapter is available.
Returns
true
if available and writable elsefalse
.- Type
- Boolean
-
getKey(key) → {String}
-
Normalize key name to avoid collision with native or internal keys.
Parameters
Name Type Description key
String The key name
Returns
New key name.
- Type
- String
-
get(key) → {*}
-
Provide a simple interface for reading key value.
Parameters
Name Type Description key
String The key name
Returns
Key value.
- Type
- *
-
set(key, value) → {String}
-
Provide a simple interface for storing key value.
Parameters
Name Type Description key
String The key name
value
String The serialized key value
Returns
Key value.
- Type
- String
-
rem(key) → {String}
-
Provide a simple interface for removing values.
Parameters
Name Type Description key
String The key name
Returns
Previous key value.
- Type
- String