Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A multi-tenancy meta-engine for Couchbase Server and memcached.

Fetching latest commit…

Cannot retrieve the latest commit at this time


Bucket Engine

This memcached engine provides multi-tenancy and isolation between other memcached engine instances.

It is designed to have minimal overhead while providing few constraints of its own.

That said, the ACL facilities are currently very limited and thus require SASL support and two security levels (admin, and everybody else).


You will need a storage-engine capable memcached and its included headers.

The easiest way to do this if you don't want to install memcached from source would be to just create a source tree and reference it.

Building Memcached

For example, assume you keep all of your projects in ~/prog/, you can do this:

cd ~/prog
git clone -b engine git://
cd memcached

Building the Bucket Engine

cd ~/prog
git clone git://
cd bucket_engine
./configure --with-memcached=$HOME/prog/memcached


An example invocation using the bucket engine from your dev tree allowing every connecting user to automatically have his own isolated namespace within the default engine is as follows:

~/prog/memcached/memcached -v -S \
    -E ~/prog/bucket_engine/.libs/ \
    -e engine=$HOME/prog/memcached/.libs/


The following configuration options are available for this engine.


An administrative user can be specified using the admin parameter.

This is the SASL authenticated user permitted to execute administrative commands (see scripts in the management directory for examples).


With auto-create enabled, buckets are created automatically when users first attempt to use them.


If true, a default bucket exists for unauthenticated users, or users who don't have buckets created for them when auto_create is disabled.


The contained engine is configured using the engine parameter (see the example above).

Something went wrong with that request. Please try again.