new NameValueStoreLarge(params)
Parameters:
| Name | Type | Description | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
object |
Properties
|
- Since:
-
- 10.5.0
- 10.6.0 Requires callers to supply the object-store name.
Throws:
-
If storeName is missing or blank.
- Type
- Error
Methods
-
<static> NameValueStoreLarge#get(field, cb [, includeKeys])
-
Retrieves a value from the store. If include keys are supplied, queries records under field + "/". Returns an object keyed by the suffix after that prefix, with only the requested fields per record. Without include keys, this is an exact-key read only. Projection scans stored full values internally; it does not maintain a separate field index.
Parameters:
Name Type Argument Description fieldstring The key to retrieve.
cbCIQ.NameValueStore~getCallback Called with
(null, value)on success or(err)on failure. Returnsnullfor missing keys.includeKeysArray.<string> <optional>
Fields to return per child ID for a collection query; an empty collection returns {}.
- Since:
-
- 10.5.0
- 10.6.0 Supports opt-in collection queries with caller-selected fields using
includeKeys.
Example
store.get("users", callback, ["name", "role"]); store.get("users/1", callback); -
<static> NameValueStoreLarge#remove(field [, cb])
-
Removes a field from the store.
Parameters:
Name Type Argument Description fieldstring The key to remove.
cbCIQ.NameValueStore~updateCallback <optional>
Called with
(null)on success or(err)on failure.- Since:
-
- 10.5.0
- 10.6.0 Reports transaction failure once, after abort.
-
<static> NameValueStoreLarge#set(field, value [, cb])
-
Stores a value in the store.
Parameters:
Name Type Argument Description fieldstring The key under which the value is stored.
valuestring | object The value to store.
cbCIQ.NameValueStore~updateCallback <optional>
Called with
(null)on success or(err)on failure.- Since:
-
- 10.5.0
- 10.6.0 Reports transaction failure once, after abort.
