The Couchbase .NET client allows applications to connect to Couchbase Server using any Common Language Runtime (CLR) language, including C#, F#, and VB.NET. The SDK is written in C#, and some of its idiomatic patterns reflect that choice.
await collection
.InsertAsync(key, Encoding.UTF8.GetBytes("hello"), options =>
{
options.Expiry(TimeSpan.FromSeconds(30));
options.Timeout(TimeSpan.FromMinutes(5));
})
.ConfigureAwait(false);
using var result = await collection.GetAsync(key, options => options.Transcoder(new LegacyTranscoder()))
.ConfigureAwait(false);
Couchbase .NET SDK 3.1
Dive right in with a quick install and Hello World.
The documentation supplements the practical Howto docs with references and concept guides, for those who prefer a broader understanding before diving in and coding.
The Couchbase .NET SDK 3.0 is a complete rewrite of the API, reducing the number of overloads to present a simplified surface area. With better performance and memory management, this is a 100% .NET Core implementation. In following Microsoft recommendations on .NET, the API has also been changed to surface many of the APIs as async using Tasks.
Introducing Distributed ACID Transactions from the .NET SDK.
Those useful nuts-and-bolts guides to compatibility tables; release notes; contribution guide; and the migration guide for moving to the 3.0 API.
For community help, visit the Couchbase forums. The .NET SDK can be combined with many other projects in the broader .NET ecosystem and beyond.