Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added adapter options example.

  • Loading branch information...
commit ad9f5d663e726907bc04c5fe380cab56574bb8d0 1 parent e72497c
@jnunemaker authored
Showing with 16 additions and 0 deletions.
  1. +16 −0 examples/adapter_options.rb
View
16 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)
Please sign in to comment.
Something went wrong with that request. Please try again.