Skip to content

Instantly share code, notes, and snippets.

@karlseguin
Created March 28, 2010 02:42
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/346525 to your computer and use it in GitHub Desktop.
Save karlseguin/346525 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));
using (var c = new Client("Primary"))
{
c.Insert(new ColumnPath { Family = "ColumnFamily", Column = "Column" }, "Key", "Value");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment