...
Info | ||
---|---|---|
| ||
|
dsCommand
Note | ||
---|---|---|
| ||
This function is only valid for Couchbase. |
The dsCommand
function stores data with a Time To Live (TTL) on the entry by updating the ‘expiration’ field for data in Couchbase, meaning it will be removed when it gets too old.
Code Block |
---|
void dsCommand(
any profid,
string "ttlStore"
string key,
int ttl,
drudr myUDR) |
You can also use the dsCommand
to extend the expiration field of the data in Couchbase using the “touch” action.
Code Block |
---|
void dsCommand(
any profid,
string "touch"
string key,
int ttl) |
Parameter | Description |
---|---|
profid | The Distributed Storage profile. |
action | The action you want to perform, “ttlStore” for storing UDRs with TTL or “touch“ to extend the TTL. |
key | The key of a key-value pair. |
ttl | Time To Live in seconds. |
myUDR | The UDR to be stored. |
Returns | Nothing. |
Info | ||
---|---|---|
| ||
|
dsRemove
The dsRemove
function removes a key-value pair, identified by a key, from a distributed storage.
...