Cassandra\Cluster object is used to create Sessions.

Implemented by

Methods

Cassandra\Session

connect

( string $keyspace = null )

Creates a new Cassandra\Session instance.

Parameters:
Name Type Details
$keyspace string

Optional keyspace name

Returns:
Type Details
Cassandra\Session

Cassandra\Session instance

Cassandra\Future

connectAsync

( string $keyspace = null )

Creates a new Cassandra\Session instance.

Parameters:
Name Type Details
$keyspace string

Optional keyspace name

Returns:
Type Details
Cassandra\Future

A Cassandra\Future Cassandra\Session instance