Couchbase v6.0:更新文档内容而不重置文档过期(TTL)值 [英] Couchbase v6.0 : Update Document content without resetting Document Expiration (TTL) value

查看:51
本文介绍了Couchbase v6.0:更新文档内容而不重置文档过期(TTL)值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用.Net Couchbase SDK(CouchbaseNetClient软件包)来创建一个新文档,同时我为该文档设置了到期值.expirey(TTL)值设置正确并且也可以正常工作.

I am using.Net Couchbase SDK(CouchbaseNetClient Package) to create a new document and while doing so I set the expiry value for the document. The expiry(TTL) value sets properly and works fine too.

问题陈述-创建文档后,我需要更新其使用N1QL的某些内容.这里出现问题,它将文档过期值重置为0.有什么方法可以在更新文档内容时不重置文档过期.

Problem Statment- Once the document has been created, I need to update some of its content for which I am using N1QL. Here the problem arises, it resets the document expiry value to 0. Is there any way to not reset the document expiry while updating a document content.

推荐答案

任何具有N1QL的突变(UPDATE,INSERT,UPSERT,MERGE)将始终将过期值设置为0.

Any mutation with N1QL (UPDATE, INSERT, UPSERT, MERGE) will always set the expiration value to 0.

通过N1QL设置到期时间已在路线图上.

Setting the expiration through the N1QL is on the roadmap.

这篇关于Couchbase v6.0:更新文档内容而不重置文档过期(TTL)值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆