// Keyspace specified in storage=conf.xml $keyspace = 'Keyspace1'; // reference to specific User id $keyUserId = "1"; // Constructing the column path that we are adding information into. $columnPath = new cassandra_ColumnPath(); $columnPath->column_family = 'Standard1'; $columnPath->super_column = null; $columnPath->column = 'email'; // Timestamp for update $timestamp = time(); // We want the consistency level to be ZERO which means async operations on 1 node $consistency_level = cassandra_ConsistencyLevel::ZERO; // Add the value to be written to the table, User Key, and path. $value = "*****@*****.**"; $client->insert($keyspace, $keyUserId, $columnPath, $value, $timestamp, $consistency_level); // Add a new column path to be altered. $columnPath->column = 'age'; //Get a current timestamp $timestamp = time(); // Update the value to be inserted for the updated column Path $value = "24"; $client->insert($keyspace, $keyUserId, $columnPath, $value, $timestamp, $consistency_level); /* * use batch_insert to insert a supercolumn and its children using the standard config * builds the structure * * Super1 : { * KeyName : { * SuperColumnName : { * foo : fooey value