Skip to content

Commit d18efa4

Browse files
Counters & TTL
DOC-11523
1 parent a423671 commit d18efa4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

modules/howtos/pages/kv-operations.adoc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,8 @@ include::{version-server}@sdk:shared:partial$documents.adoc[tag=exp-note]
154154

155155
The value of a document can be increased or decreased atomically using `binary().increment()` and `binary().decrement()`.
156156

157+
NOTE: Increment & Decrement are considered part of the ‘binary’ API and as such may still be subject to change.
158+
157159
.Increment
158160
[source,javascript]
159161
----
@@ -178,8 +180,10 @@ include::devguide:example$nodejs/kv-operations.js[tag=decrement,indent=0]
178180
include::devguide:example$nodejs/kv-operations.js[tag=decrementwithoptions,indent=0]
179181
----
180182

181-
NOTE: Increment & Decrement are considered part of the ‘binary’ API and as such may still be subject to change
183+
TIP: Setting the document expiry time only works when a document is created, and it is not possible to update the expiry time of an existing counter document with the Increment method -- to do this during an increment, use with the `Touch()` method.
184+
182185

186+
// Atomicity Across Data Centers
183187

184188
include::7.1@sdk:shared:partial$atomic.adoc[tag=xdcr]
185189

0 commit comments

Comments
 (0)