Memcached + bucket support
Tue, 03/06/2012 - 19:30
I'm working on integrating couchbase 2.0 with Drupal. I'm trying to use the php-couchbase 1.1 library, which is the extension of Memcached. How can I distinguish one bucket from another bucket via the API? When I use the php-couchbase, there is a way to set the $default_bucket_name before all the classes are instantiated. However, when it comes time to use Memcached's set()/get() calls to set the documents, all the documents will only go to the default bucket.
There doesn't seem to be a way to set the bucket in in Memcached. Can you please shed some light?
As a follow up, I just wanted to give my use case. I wanted to be able to create different buckets to hold different kinds of data, equivalent to one database table per functionality I want to create.
I talked with ingenthr and jan____ on IRC and it appears there will be better support in the newer PHP SDK.