Skip to content

Instantly share code, notes, and snippets.

@matthuhiggins
Created May 29, 2012 21:43
Show Gist options
  • Select an option

  • Save matthuhiggins/2830957 to your computer and use it in GitHub Desktop.

Select an option

Save matthuhiggins/2830957 to your computer and use it in GitHub Desktop.
cassandra interaction
source "http://rubygems.org"
gem 'mcmire-cassandra', require: 'cassandra/1.0'
require 'bundler/setup'
Bundler.require
cassandra = Cassandra.new('place_directory_development', ['127.0.0.1:9160'])
cassandra.each('Places') do |key, attributes|
p "key = #{key}"
end
# cassandra.insert('Places', "my-sweet-key", {"foo" => "bar"})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment