Current version is 1.3.2 • Built atop of libcouchbase as C extension to ruby • Works with ruby 1.8.7+ on UNIX-‐like plaUorms and Windows Friday, September 13, 13
own copies of connec6ons Couchbase.connection_options = { :password => "secret", :node_list => ["example.com", "example.org"] } default = Couchbase.bucket # use named slots to keep several connections users = Couchbase.bucket("users") Friday, September 13, 13
Get mul6ple values conn.get("john", "bill") #=> [{"balance"=>100.0}, {"balance"=>200.0}] • Get with meta info conn.get("john", "bill", :extended => true) #=> {"john"=>[{"balance"=>100.0}, 0, 2206872111421718528], "bill"=>[{"balance"=>200.0}, 0, 4374793481558818816]} Friday, September 13, 13