beaker.ext.mongodb – MongoDB NameSpace Manager and Synchronizer¶
Module Contents¶
-
class
beaker.ext.mongodb.MongoNamespaceManager(namespace, url, **kw)¶ Provides the
NamespaceManagerAPI over MongoDB.Provided
urlcan be both a mongodb connection string or an already existing MongoClient instance.The data will be stored into
beaker_cachecollection 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
urlcan be both a mongodb connection string or an already existing MongoClient instance.The data will be stored into
beaker_lockscollection 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.