Interface IClusterVersionProvider
Provides version information about the cluster.
Namespace: Couchbase.Core.Version
Assembly: Couchbase.NetClient.dll
Syntax
public interface IClusterVersionProvider
Remarks
The implementation of this interface is typically obtained from ClusterServices.
Methods
| Edit this page View SourceClearCache()
Clear any cached value, getting a fresh value from the cluster on the next request.
Declaration
void ClearCache()
GetVersionAsync()
Gets the ClusterVersion from the currently connected cluster, if available.
Declaration
ValueTask<ClusterVersion?> GetVersionAsync()
Returns
Type | Description |
---|---|
ValueTask<ClusterVersion?> | The ClusterVersion, or null if unavailable. |