PHP Interface Cassandra\Cluster

Show file Open project: datastax/php-driver Interface Usage Examples

Public Methods

Method Description
connect ( string $keyspace = null ) : cassandra\Session Creates a new Session instance.
connectAsync ( string $keyspace = null ) : cassandra\Future Creates a new Session instance.

Method Details

connect() public method

Creates a new Session instance.
public connect ( string $keyspace = null ) : cassandra\Session
$keyspace string Optional keyspace name
return cassandra\Session Session instance

connectAsync() public method

Creates a new Session instance.
public connectAsync ( string $keyspace = null ) : cassandra\Future
$keyspace string Optional keyspace name
return cassandra\Future A Future Session instance