Skip to content

Instantly share code, notes, and snippets.

@karlseguin
Created March 29, 2010 02:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save karlseguin/347281 to your computer and use it in GitHub Desktop.
Save karlseguin/347281 to your computer and use it in GitHub Desktop.
Bootstrap.DefineConnection(c => c.ConnectTo("192.168.10.151", 9160)
.KeySpaceIs("ApolloSandbox")
.WithName("Primary")
.ReadConsistency(ReadConsistencyLevel.One)
.WriteConsistency(WriteConsistencyLevel.One));
var path = new ColumnPath { Family = "ColumnFamily", Column = "Column" };
using (var c = new Client("Primary"))
{
c.Insert(path, "Key", "Value");
var column = c.GetColumn(path, "Key");
Console.WriteLine(System.Text.Encoding.UTF8.GetString(column.Value));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment