Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

An EventMachine-based Couchbase ruby driver

tree: a6b1c1db65

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 tasks
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .yardopts
Octocat-spinner-32 Gemfile
Octocat-spinner-32 LICENSE Initial implementation. GET/SET support March 22, 2012
Octocat-spinner-32 README.markdown
Octocat-spinner-32 Rakefile
Octocat-spinner-32 em-couchbase.gemspec
README.markdown

EXAMPLE

Like any Deferrable eventmachine-based protocol implementation, using EM-Couchbase involves making calls and passing blocks that serve as callbacks when the call returns.

require 'em-couchbase'

EM.run do
  couchbase = EM::Protocols::Couchbase.connect
  couchbase.set "a", "foo" do |response|
    if response.success?
      couchbase.get "a" do |response|
        puts response.inspect
      end
    end
  end
end
Something went wrong with that request. Please try again.