Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

backend for dogpile.cache with reading and writing on mongodb

Project description


Use pip:

pip install dogpile_mongo


See the example.


from dogpile.cache import make_region

db = MongoClient()['test']
region = make_region().configure(
     # arguments are same as mongo backend.
         'db': db,

region.set("test", b"value")
region.set_multi({"key1": b"value1", "key2": 100})
print(region.get_multi(["key1", "key2"]))


$ python
[b'value1', b'100']

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for dogpile-mongo, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size dogpile_mongo-0.0.1-py2-none-any.whl (3.5 kB) File type Wheel Python version py2 Upload date Hashes View
Filename, size dogpile_mongo-0.0.1.tar.gz (2.5 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page