I am trying to implement distributed cache in .Net core using Couchbase
An unhandled exception was thrown by the application. <s:Microsoft.AspNetCore.Server.Kestrel>
System.MissingMethodException: Method not found: ‘Couchbase.Core.IBucket Couchbase.Extensions.DependencyInjection.INamedBucketProvider.GetBucket()’
at Couchbase.Extensions.Caching.CouchbaseCache…ctor(ICouchbaseCacheBucketProvider provider, IOptions`1 options)
Here is my sample code from Startup.cs
services.AddCouchbase(options =>
{
options
.WithConnectionString("couchbase://localhost:18090")
.WithCredentials("username", "pwd");
})
.AddDistributedCouchbaseCache("sessionstore", options => { });
I installed following packages
Couchbase.Extensions.Caching(1.0.2)
Couchbase.Extensions.DependencyInjection(3.0.5.931)
CouchbaseNetClient(3.0.6)
I noticed that INamedBucketProvider
doesn’t have GetBucket
method. Instead it has GetBucketAsync
. So, I am wondering whether there is any package incompatibility.