README.rdoc in cassandra-0.9.0 vs README.rdoc in cassandra-0.9.1

- old
+ new

@@ -52,18 +52,33 @@ Insert into a column family. You can insert a `Cassandra::OrderedHash`, or a regular Hash, if order doesn't matter: client.insert(:Users, "5", {'screen_name' => "buttonscat"}) +The 0.7 API insert() includes support for TTL on columns. The following example inserts into a comlumn family with a time to live of 30 seconds. + + client.insert(:Users, "5", {'screen_name' => "buttonscat"}, {:ttl=>30}) + Insert into a super column family: client.insert(:UserRelationships, "5", {"user_timeline" => {UUID.new => "1"}}) Query a super column: timeline = client.get(:UserRelationships, "5", "user_timeline") The returned result will always be a Cassandra::OrderedHash. + +Create and delete a 2ary index: + + client.create_index("Twitter", "Users", "revenue_generating_units", "LongType") + client.delete_index("Twitter", "Users", "revenue_generating_units" + +Create an index clause and query an indexed column family: + + expr = client.create_idx_expr("revenue_generating_units", 100, ">") + clause = client.create_idx_clause([expr]) + client.get_indexed_slices(:Users, clause) See Cassandra for more methods. == Configuration