Couchbase .NET SDK | 3.7.2
Search Results for

    Show / Hide Table of Contents

    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.

    Inherited Members
    IDisposable.Dispose()
    IAsyncDisposable.DisposeAsync()
    Namespace: Couchbase.Extensions.DependencyInjection
    Assembly: Couchbase.Extensions.DependencyInjection.dll
    Syntax
    public interface IBucketProvider : IDisposable, IAsyncDisposable

    Methods

    | Edit this page View Source

    GetBucketAsync(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.

    • Edit this page
    • View Source
    In this article
    Back to top © 2025 Couchbase, Inc.