Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'couchbase'
- c = Couchbase.connect(:hostname => 'hostname',
- :port => 8091,
- :pool => 'default',
- :bucket => 'bucket',
- :username => 'bucket',
- :password => 'password')
- c.run do |conn|
- conn.set "foo", "bar", :ttl => 60
- conn.get "foo" {|ret| puts ret.value}
- end
Add Comment
Please, Sign In to add comment