Interface IBucketProvider
Provides access to buckets for a Couchbase cluster. Should maintain singleton instances of each bucket. Consumers should not dispose the IBucket implementations. Instead, this provider should be disposed during application shutdown using ICouchbaseLifetimeService.
Namespace: Couchbase.Extensions.DependencyInjection
Assembly: Couchbase.Extensions.DependencyInjection.dll
Syntax
public interface IBucketProvider : IDisposable, IAsyncDisposable
Methods
| Edit this page View SourceGetBucketAsync(string)
Get a Couchbase bucket.
Declaration
ValueTask<IBucket> GetBucketAsync(string bucketName)
Parameters
Type | Name | Description |
---|---|---|
string | bucketName | Name of the bucket. |
Returns
Type | Description |
---|---|
ValueTask<IBucket> | IBucket implementation for the given bucket name. |