# CassandraMembershipHostingExtensions.UseCassandraClustering(IClientBuilder, string, string)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.clustering.cassandra/orleans.clustering.cassandra.hosting.cassandramembershiphostingextensions/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.clustering.cassandra/orleans.clustering.cassandra.hosting.cassandramembershiphostingextensions/methods/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Cassandra/Orleans.Clustering.Cassandra/Hosting/CassandraMembershipHostingExtensions.cs)

```csharp
public static IClientBuilder UseCassandraClustering(this IClientBuilder builder, string connectionString, string keyspace = "orleans")
```

Configures Orleans clustering using Cassandra.

### Parameters

- `builder` (`IClientBuilder`): The client builder.
- `connectionString` (`string`): The Cassandra connection string.
- `keyspace` (`string`): The Cassandra keyspace, which defaults to `orleans`.

### Returns

The client builder.
