Permalink
Browse files

Added adapter options example.

  • Loading branch information...
1 parent e72497c commit ad9f5d663e726907bc04c5fe380cab56574bb8d0 @jnunemaker committed Nov 16, 2012
Showing with 16 additions and 0 deletions.
  1. +16 −0 examples/adapter_options.rb
@@ -0,0 +1,16 @@
+require_relative 'shared_setup'
+
+client = AppsCF
+using = {using: {consistency: :quorum}}
+adapter = Adapter[:cassanity].new(client, {
+ read: using,
+ write: using,
+ delete: using,
+})
+adapter.clear
+
+id = CassandraCQL::UUID.new
+
+adapter.write(id, {name: 'GitHub'})
+pp adapter.read(id)
+adapter.delete(id)

0 comments on commit ad9f5d6

Please sign in to comment.