Methods
# async exists(key, optionsopt, callbackopt) → {Promise.<ExistsResult>}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
key |
string | ||
options |
* |
<optional> |
|
timeout |
integer |
<optional> |
|
callback |
ExistsCallback |
<optional> |
Promise.<ExistsResult>
# async get(key, optionsopt, callbackopt) → {Promise.<GetResult>}
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
key |
string | |||
options |
* |
<optional> |
||
project |
Array.<string> |
<optional> |
||
withExpiry |
boolean |
<optional> |
false | |
transcoder |
Transcoder |
<optional> |
||
timeout |
integer |
<optional> |
||
callback |
GetCallback |
<optional> |
Promise.<GetResult>
# async getAllReplicas(key, optionsopt, callbackopt) → {Promise.<Array.<GetReplicaResult>>}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
key |
string | ||
options |
* |
<optional> |
|
transcoder |
Transcoder |
<optional> |
|
timeout |
integer |
<optional> |
|
callback |
GetAllReplicasCallback |
<optional> |
Promise.<Array.<GetReplicaResult>>
# async getAndLock(key, lockTime, optionsopt, callbackopt) → {Promise.<GetAndLockCallback>}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
key |
string | ||
lockTime |
integer | ||
options |
* |
<optional> |
|
transcoder |
Transcoder |
<optional> |
|
timeout |
integer |
<optional> |
|
callback |
GetAndLockCallback |
<optional> |
Promise.<GetAndLockCallback>
# async getAndTouch(key, expiry, optionsopt, callbackopt) → {Promise.<GetAndTouchResult>}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
key |
string | ||
expiry |
integer | ||
options |
* |
<optional> |
|
transcoder |
Transcoder |
<optional> |
|
timeout |
integer |
<optional> |
|
callback |
GetAndTouchCallback |
<optional> |
Promise.<GetAndTouchResult>
# async getAnyReplica(key, optionsopt, callbackopt) → {Promise.<GetReplicaResult>}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
key |
string | ||
options |
* |
<optional> |
|
transcoder |
Transcoder |
<optional> |
|
timeout |
integer |
<optional> |
|
callback |
GetAnyReplicaCallback |
<optional> |
Promise.<GetReplicaResult>
# async insert(key, value, options, callback) → {Promise.<MutationResult>}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
key |
string | ||
value |
* | ||
options |
* | ||
transcoder |
Transcoder |
<optional> |
|
timeout |
integer |
<optional> |
|
callback |
MutationCallback |
Promise.<MutationResult>
# async lookupIn(key, spec, optionsopt, callbackopt) → {Promise.<LookupInResult>}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
key |
string | ||
spec |
Array.<LookupInSpec> | ||
options |
* |
<optional> |
|
timeout |
integer |
<optional> |
|
callback |
LookupInCallback |
<optional> |
Promise.<LookupInResult>
# async mutateIn(key, spec, optionsopt, callbackopt) → {Promise.<MutateInResult>}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
key |
string | ||
spec |
MutateInSpec | ||
options |
* |
<optional> |
|
cas |
Cas |
<optional> |
|
timeout |
integer |
<optional> |
|
callback |
MutateInCallback |
<optional> |
Promise.<MutateInResult>
# async remove(key, options, callbackopt) → {Promise.<RemoveResult>}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
key |
string | ||
options |
* | ||
timeout |
integer |
<optional> |
|
callback |
RemoveCallback |
<optional> |
Promise.<RemoveResult>
# async replace(key, value, options, callback) → {Promise.<MutationResult>}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
key |
string | ||
value |
* | ||
options |
* | ||
transcoder |
Transcoder |
<optional> |
|
timeout |
integer |
<optional> |
|
cas |
Cas |
<optional> |
|
callback |
MutationCallback |
Promise.<MutationResult>
# async touch(key, expiry, optionsopt, callbackopt) → {Promise.<TouchResult>}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
key |
string | ||
expiry |
integer | ||
options |
* |
<optional> |
|
timeout |
integer |
<optional> |
|
callback |
TouchCallback |
<optional> |
Promise.<TouchResult>
# async unlock(key, cas, optionsopt, callbackopt) → {Promise.<UnlockResult>}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
key |
string | ||
cas |
Cas | ||
options |
* |
<optional> |
|
timeout |
integer |
<optional> |
|
callback |
UnlockCallback |
<optional> |
Promise.<UnlockResult>
# async upsert(key, value, optionsopt, callback) → {Promise.<MutationResult>}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
key |
string | ||
value |
* | ||
options |
* |
<optional> |
|
transcoder |
Transcoder |
<optional> |
|
timeout |
integer |
<optional> |
|
callback |
MutationCallback |
Promise.<MutationResult>