Couchbase.NetClient 3.4.14 cant find workaround for these Classes in new version (Document ,IDocument , IDocumentResult )

I’m trying to use these classes (Document ,IDocument , IDocumentResult ) in the newer stable version , some are marked obsolute and some dont exist in the new CouchBaseNetClient 3.4.14 , please provide me a workaround
image

i want to use Id, Content and Expiry

@139751

Those APIs don’t exist anymore in the new SDK. Instead, use the XXXOptions parameter to pass options such as expiration:

await collection.UpsertAsync($"UILOG_{UiLogSeverity.Info}_{currentUtcTime}", logAuditModel, new UpsertOptions().Expiry(TimeSpan.FromDays(2)));
2 Likes