From 14285a52521d5e4bb93383d3322d7451a64e422f Mon Sep 17 00:00:00 2001 From: Richard Smedley Date: Tue, 17 Oct 2023 09:11:51 +0100 Subject: [PATCH] expiry with increment DOC-11523 --- modules/howtos/pages/kv-operations.adoc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/howtos/pages/kv-operations.adoc b/modules/howtos/pages/kv-operations.adoc index 1bf0d2ab..644c559d 100644 --- a/modules/howtos/pages/kv-operations.adoc +++ b/modules/howtos/pages/kv-operations.adoc @@ -173,6 +173,8 @@ Values above 0ms but below 1000ms are rounded up to one second before being sent The value of a document can be increased or decreased atomically using `Binary.Increment()` and `Binary.Decrement()`. +NOTE: Increment & Decrement are considered part of the ‘binary’ API and as such may still be subject to change + .Increment [source,csharp] ---- @@ -197,8 +199,7 @@ include::example$KvOperations.csx[tag=binarydecrement,indent=0] include::example$KvOperations.csx[tag=binarydecrementwithoptions,indent=0] ---- -NOTE: Increment & Decrement are considered part of the ‘binary’ API and as such may still be subject to change - +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. include::{version-common}@sdk:shared:partial$atomic.adoc[tag=xdcr]