beaker.ext.mongodb – MongoDB NameSpace Manager and Synchronizer

Module Contents

class beaker.ext.mongodb.MongoNamespaceManager(namespace, url, **kw)

Provides the NamespaceManager API over MongoDB.

Provided url can be both a mongodb connection string or an already existing MongoClient instance.

The data will be stored into beaker_cache collection of the default database, so make sure your connection string or MongoClient point to a default database.

class beaker.ext.mongodb.MongoSynchronizer(identifier, url)

Provides a Writer/Reader lock based on MongoDB.

Provided url can be both a mongodb connection string or an already existing MongoClient instance.

The data will be stored into beaker_locks collection of the default database, so make sure your connection string or MongoClient point to a default database.

Locks are identified by local machine, PID and threadid, so are suitable for use in both local and distributed environments.