Skip to content

Instantly share code, notes, and snippets.

@johnzablocki
Created March 26, 2012 22:47
Show Gist options
  • Save johnzablocki/2210374 to your computer and use it in GitHub Desktop.
Save johnzablocki/2210374 to your computer and use it in GitHub Desktop.
Set and Get with the Couchbase Python Client Library
import couchbase
cb = couchbase.Server("127.0.0.11:8091", "", "")
bucket = cb.bucket("default")
bucket.set("foo", 0, 0, "bar")
print bucket.get("foo")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment