I’m in the process of upgrading from SDK2 to SDK3 and I’m trying to figure out how to implement this SDK2 code in .NET5 as it seem to be missing from your docs:
// get total ram allocated var info = clusterManager.ClusterInfo(); StorageTotals storageTotals = info.Value.Pools().StorageTotals; long totalMachineRam = storageTotals.Ram.QuotaTotal;
Also, I’ve noticed when using Buckets.CreateBucketAsync to create a bucket that already exist, it doesn’t throw an exception. It also doesn’t seem to return anything to let me know the action was successful unlike in SDK2.
I have also been trying to use
var bucket = CouchbaseConnection.Buckets.GetBucketAsync(bucketName).GetAwaiter().GetResult();
But for an existing bucket I get an exception:
ArgumentNullException: Value cannot be null. (Parameter 'value') Newtonsoft.Json.Utilities.ValidationUtils.ArgumentNotNull(object value, string parameterName)