Skip to content

Instantly share code, notes, and snippets.

@akishin
Created May 17, 2010 03:47
Show Gist options
  • Save akishin/403373 to your computer and use it in GitHub Desktop.
Save akishin/403373 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'cassandra'
include Cassandra::Constants
client = Cassandra.new('Keyspace1', '127.0.0.1:9160')
client.insert(:Standard1, 'bar', { 'name' => 'bar' } )
client.insert(:Standard1, 'bar', { 'age' => '99' } )
p client.get(:Standard1, 'bar')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment