Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: jnunemaker/adapter-cassanity
base: 02ac1cedf4
...
head fork: jnunemaker/adapter-cassanity
compare: 4a7031f129
Checking mergeability… Don't worry, you can still create the pull request.
  • 2 commits
  • 2 files changed
  • 0 commit comments
  • 1 contributor
Showing with 13 additions and 1 deletion.
  1. +12 −0 README.md
  2. +1 −1  lib/adapter/cassanity/version.rb
View
12 README.md
@@ -29,6 +29,14 @@ client = apps
adapter = Adapter[:cassanity].new(client)
adapter.clear
+# you can also set options for the adapter
+using = {using: {consistency: :quorum}}
+adapter = Adapter[:cassanity].new(client, {
+ read: using, # read using quorum consistency
+ write: using, # write using quorum consistency
+ delete: using, # delete using quorum consistency
+})
+
id = CassandraCQL::UUID.new
adapter.read(id) # => nil
@@ -44,6 +52,10 @@ adapter.read(id) # => {'id' => ..., 'name' => 'GitHub'}
adapter.clear
adapter.read(id) # => nil
+
+# You can also override adapter options per method:
+# This will perform read with consistency set to ONE.
+adapter.read(id, using: {consistency: :one})
```
## Installation
View
2  lib/adapter/cassanity/version.rb
@@ -1,5 +1,5 @@
module Adapter
module Cassanity
- VERSION = "0.1.0"
+ VERSION = "0.2.0"
end
end

No commit comments for this range

Something went wrong with that request. Please try again.