Skip to content

Commit

Permalink
added column insert with ttl example
Browse files Browse the repository at this point in the history
  • Loading branch information
etamme committed Dec 13, 2010
1 parent 520134a commit 38dbc24
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.rdoc
Expand Up @@ -54,6 +54,10 @@ Insert into a column family. You can insert a `Cassandra::OrderedHash`, or a reg

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"}})
Expand Down

0 comments on commit 38dbc24

Please sign in to comment.