I’m trying to find a way for getting only the metadata for a document (especially Cas value) for using it at Couchbase sub-document. As described here : http://blog.couchbase.com/2016/may/couchbase-server-45s-new-sub-document
for optimistic locking I need to work with “withCas” option, but for getting the Cas I need to do getDocument. If I do it I almost don’t get any better performance VS working in the standard way, because I do full get including the content which may access to the disk.
Does anyone know if there is a possibility to get only document metadata?